Basic HTML Structure

Example HTML elements explained:

  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the document
  • The <meta> element defines metadata about an HTML document including charset, description, author, viewport.
  • The <title> element specifies a title for the document
  • The <link> element defines a link between a document and an external resource, such as web fonts, stylesheets, favicons.
  • The <body> element contains the visible page content
  • The <div> element defines a division or a section in an HTML document.
  • The <h1>, <h2>, <h3>, <h4>, <h5>, <h6> elements defines different heading sizes
  • The <p> element defines a paragraph