HTML Example

Share:

HTML Example


<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>



Example Explained



  • The DOCTYPE declaration defines the document type to be HTML

  • The type text between <html> and </html> is an HTML document

  • The type text between <head> and </head> information about the document

  • The type text between <title> and </title> a title for the document

  • The type text between <body> and </body> the visible page content

No comments