Total Pageviews

15 October 2018

HTML Page Structure



HTML Page Structure

Below is a visualization of an HTML page structure:

<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>

 <!DOCTYPE> Declaration

The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correct way.It must only appear once, at the top of the page (before any HTML tags).The <!DOCTYPE> declaration is not case sensitive.The <!DOCTYPE> declaration for HTML5 is:

For Example
<!DOCTYPE html>

No comments:

Post a Comment

Contact Form

Name

Email *

Message *