Introduction to HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Page Title</title> </head> <body> <h1>My first header</h1> <p>My first paragraph</p> </body> </html>
DOCTYPE declares the document type
<html> describe the document type
<head> Identify the headers of HTML documents, which are usually required by the browser and additional instructions for the HTML document, such as document-loaded CSS styles or other scripting information.
<title> defines the title of the entire HTML document for display in the title bar at the top of the browser window, nested within <head>.
<body> are for visualizing web content
<h1> are used as a title
<p> are displayed as a paragraph
Note : <!DOCTYPE html> also describes the document type in HTML5.
Html or htm?
Web pages can be html suffix or htm suffix, in this tutorial html suffix as default.