HTML Basic Code Web Page
- TheÂ
<!DOCTYPE html>
 declaration defines that this document is an HTML5 document - TheÂ
<html>
 element is the root element of an HTML page - TheÂ
<head>
 element contains meta information about the HTML page - TheÂ
<title>
 element specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab) - TheÂ
<body>
 element defines the document’s body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
HTML Page Structure
<!DOCTYPEÂ html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
All HTML documents must start with a document type declaration:Â <!DOCTYPE html>
.
The HTML document itself begins with <html>
 and ends with </html>
.
The visible part of the HTML document is between <body>
 and </body>
.