0% found this document useful (0 votes)
32 views

Example: Now Add Some Razor Code To The Example

This document contains an HTML code example of a basic web page with a heading and paragraph. It has been updated to include Razor code that displays the current date and time by calling the DateTime.Now property within the paragraph.

Uploaded by

portlandonline
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Example: Now Add Some Razor Code To The Example

This document contains an HTML code example of a basic web page with a heading and paragraph. It has been updated to include Razor code that displays the current date and time by calling the DateTime.Now property within the paragraph.

Uploaded by

portlandonline
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

<!

DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8" />
<title>Web Pages Demo</title>
</head>
<body>
<h1>Hello Web Pages</h1>
</body>
</html>

Now add some Razor code to the example:

Example
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8" />
<title>Web Pages Demo</title>
</head>
<body>
<h1>Hello Web Pages</h1>
<p>The time is @DateTime.Now</p>
</body>
</html>
Run example »

You might also like