ASP.NET Web Pages WebMatrix

## Web Building

HOME Web Empty Site Web Database

## PHP Demo

PHP Demo PHP Website PHP Styles PHP Database PHP Navigation PHP Ajax

## ASP Demo

ASP Demo ASP Website ASP Styles ASP Database ASP Login ASP Security ASP Navigation ASP Ajax

## .NET Web Pages

WebPages Demo WebPages Website WebPages Styles WebPages Database WebPages Login WebPages Security WebPages Navigation WebPages Ajax

## .NET Web Forms

WebForms Demo WebForms Website WebForms Styles WebForms Database WebForms Navigation WebForms Ajax

## Web Building

Web Design Web Quality Web WAI Web Validation Web SEO Web TCP/IP

## Web Hosting

Host Intro Host Providers Host Domains Host Capacity Host Email Host Technologies Host Databases Host Types Host E-commerce

# ASP.NET Web Pages - Creating a Web Site

« Previous
Next Chapter »

Learn ASP.NET Web Pages by building a web site from scratch.

Part I: Creating a Web Site.

## Create a Web Site

Create an empty web site named DemoWebPages.

If you want to learn how to create an empty web site, please go to the chapter Web Empty Site.

## Create a Home Page

In the "DemoWebPages" folder, create a new CSHTML file named Default.cshtml.

Put the following content inside the file:

## Default.asp

<!DOCTYPE html>
<html>
<head>
<title>Web Pages Demo</title>
</head>
<body>
<h1>Welcome to W3Schools</h1>
<h2>Web Site Main Ingredients</h2>
<p>A Home Page (Default.cshtml)</p>
<p>A Layout File (Layout.cshtml)</p>
<p>A Style Sheet (Site.css)</p>
</body>
</html>
Run example »

## Add an About Page

In the "DemoWebPages" folder, create a new CSHTML file named "About.cshtml".

Put the following code inside the about file:

## About.cshtml

<!DOCTYPE html>
<html>
<head>
<title>About</title>
</head>
<body>
<h1>About Us</h1>
<p>Lorem Ipsum Porem Lorem Ipsum Porem</p>
</body>
</html>

The about file above contains a heading and a paragraph. Please feel free to edit the content.

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE