DEV Community

Vigneshwaralingam
Vigneshwaralingam

Posted on

2 1 1 1 1

Day 1: Introduction to HTML

Day 1: Introduction to HTML

What Is HTML?

  • HTML stands for HyperText Markup Language.
  • It’s the foundational language for creating and structuring web pages.

Basic HTML Structure (Simplified)

Below is a minimal HTML page, focusing on the visible content and essential tags—omitting the doctype and meta tags for brevity:

<html>
  <head>
    <title>My First Webpage</title>
  </head>
  <body>
    <h1>Welcome to My Webpage</h1>
    <p>This is my first HTML page. I’m learning HTML structure!</p>
  </body>
</html>
Enter fullscreen mode Exit fullscreen mode

Key Elements

  • <html>: Wraps the entire HTML document.
  • <head>: Contains meta-information (here, just the <title>).
  • <title>: Sets the page title shown in the browser tab.
  • <body>: Holds the content displayed to users.
  • <h1>: Main heading of the page.
  • <p>: Paragraph text.

Day 1 Key Takeaways

  1. HTML means HyperText Markup Language.
  2. Every page uses <html>, <head>, and <body>.
  3. Use <title> for the browser tab title, <h1> for main headings, and <p> for paragraphs.

Top comments (0)