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>
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
- HTML means HyperText Markup Language.
- Every page uses
<html>,<head>, and<body>. - Use
<title>for the browser tab title,<h1>for main headings, and<p>for paragraphs.
Top comments (0)