Basic_HTML_Tags_with_Examples
Basic_HTML_Tags_with_Examples
Index
S.No Tag Name
1 <html>
2 <head>
3 <title>
4 <body>
5 <h1 to h6>
6 <p>
7 <a>
8 <img>
9 <ul & li>
10 <ol>
11 <table>
12 <form>
13 <marquee>
14 <div>
15 <span>
<!DOCTYPE html>
<html>
<head><title>My Page</title></head>
<body>Hello World</body>
</html>
<head>
<title>Sample Head</title>
</head>
<title>My Website</title>
<body> – Visible Content
All visible content like text, images, etc., goes inside <body>.
<body>
<h1>Welcome!</h1>
</body>
<h1>Main Heading</h1>
<h2>Subheading</h2>
<ul>
<li>Pen</li>
<li>Pencil</li>
<li>Notebook</li>
</ul>
<ol>
<li>Wake up</li>
<li>Brush teeth</li>
<li>Eat breakfast</li>
</ol>
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
<marquee>Welcome to My Website!</marquee>
<div style="background-color:lightblue;">
<h2>Boxed Section</h2>
<p>Inside a div container.</p>
</div>