Session 8
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello, World!</title>
</head>
<body>
Hello, World!
<h1>Main Title (Largest)</h1>
<h2>Section Title</h2>
<h3>Subsection Title</h3>
<h4>Sub-subsection Title</h4>
<h5>Small Title</h5>
<h6>Smallest Title</h6>
<p>This is a paragraph of text.</p>
<strong>Bold text</strong>
<em>Italic text</em>
<u>Underlined text</u>
<br>
<hr>
<ul>
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
</ul>
<ol>
<li>First step</li>
<li>Second step</li>
<li>Third step</li>
</ol>
</body>
</html>HTML Basics Tutorial
What is HTML?
Basic HTML Structure
Key Components:
HTML Tags and Elements
Tag Structure:
Essential HTML Elements
Headings
Paragraphs
Text Formatting
Links
Images
Lists
Unordered Lists (Bullet Points)
Ordered Lists (Numbered)
Tables
Forms
Common Input Types:
Semantic HTML Elements
Attributes
Common Attributes:
Comments
Complete Example
Best Practices
Last updated
Was this helpful?