HTML

HTML Introduction


HTML Tutorial

 

  • Foundation of Web: HTML, or HyperTe huxt Markup Language, is the cornerstone of web development.
  • Structuring Content: It employs tags to structure content elements like headings, paragraphs, links, images, etc.
  • Browser Interpretation: Browsers interpret HTML to display web content following its defined structure.
  • Evolutionary Versions: Various versions exist, with HTML5 being the latest, enabling dynamic and engaging web experiences.

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Simple HTML Document</title>
</head>
<body>
    <h1>Hello, World!</h1>
    <p>This is a simple HTML document.</p>
    <p><a href="https://www.example.com">Visit Example.com</a></p>
    <h3>In this example:</h3>
</body>
</html>

 

  • <!DOCTYPE html> declares the document type and version (HTML5 in this case).
  • <html> is the root element of the HTML document.
  • <head> contains meta-information about the document, such as the title that appears in the browser tab.
  • <title> specifies the title of the document.
  • <body> contains the main content of the document, like text, images, links, etc.
  • <h1> is a heading tag, indicating a top-level heading.
  • <p> is a paragraph tag.
  • <a> is an anchor tag, used for creating hyperlinks. The href attribute specifies the URL the link points to.