Html Document

A sample Html page.

Explanation:

  • <!DOCTYPE html> : Use to define document type.
  • <html> : Denotes Start of html page.
  • <head> : Contains meta information about the page.Like title,favicon etc.
  • <title> : Title of doc goes here.
  • <body> : All the things which will be seen in web page comes here.
  • <h1> : Defines heading.
  • <p> : Use to write paragraph.

NOTE : The text written under “<” and “>” is element name.

Output:

Leave a Reply

Your email address will not be published. Required fields are marked *