Developer Roadmap
/Basic Tags
TopicStep 33 filesOpen folder on GitHub

Basic Tags

explain.html
View on GitHub
explain.html
View on GitHub
<!DOCTYPE html>
<!-- 
  <!DOCTYPE html> tells the browser:
  "Use the latest HTML standard (HTML5)." 
  This is NOT an HTML tag, but an instruction.
-->

<html lang="en">
<!-- <html> is the root element of the entire document -->
  <head>
    <!-- <head> contains information ABOUT the page (not visible to users) -->

    <!-- <meta charset> defines character encoding (supports all languages, emojis, etc.) -->
    <meta charset="UTF-8">

    <!-- <meta name="viewport"> makes the page responsive on mobile devices -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Optional: description for SEO -->
    <meta name="description" content="Demo of basic HTML document structure">
  </head>

  <body>
    <!-- <body> contains ALL the visible content shown in the browser -->
  </body>
</html>