Document structure

   
    <!DOCTYPE html>
    <html>
      <head>
        <meta charset="utf-8" />
        <title>Page Title</title>
      </head>
      <body>
        <h1>This is a Heading</h1>
        <p>This is a paragraph.</p>
      </body>
    </html> 
  

<!DOCTYPE html>

doctype determine version of HTML, <!DOCTYPE html> means document is an HTML5 document

<html>

the root element for an HTML document

Content language : lang attribute

defines the main language of the document, a two- or three-letter ISO language code

   
    <html lang="fr-CA">
  

ISO Language Codes
ISO Country Codes

<head>

contains all the metadata for a site or application

Character encoding

character encoding declaration, By declaring UTF-8, you can even include emojis in your title

     
      <meta charset="utf-8" />
    
  

title

title are displayed in the browser tab, the list of open windows, the history, search results, and, unless redefined with <meta> tags, in social media cards.