HTML_30_Tags_with_Examples_and_Outputs
HTML_30_Tags_with_Examples_and_Outputs
Outputs
Index
S.No Tag Name
1 <html>
2 <head>
3 <title>
4 <meta>
5 <link>
6 <style>
7 <script>
8 <body>
9 <h1 to h6>
10 <p>
11 <a>
12 <img>
13 <ul>
14 <ol>
15 <li>
16 <table>
17 <tr>
18 <th>
19 <td>
20 <form>
21 <input>
22 <label>
23 <button>
24 <textarea>
25 <select>
26 <option>
27 <div>
28 <span>
29 <br>
30 <hr>
💻 Code Example:
<!DOCTYPE html>
<html>
...
</html>
💻 Code Example:
<head>
<title>My Page</title>
</head>
💻 Code Example:
<title>My Website</title>
💻 Code Example:
<meta charset="UTF-8">
💻 Code Example:
💻 Code Example:
<style>
body {color: blue;}
</style>
💻 Code Example:
<script>
alert('Hi');
</script>
💻 Code Example:
<body>
<h1>Hello</h1>
</body>
💻 Code Example:
<h1>Main</h1>
<h6>Smallest</h6>
📊 Output: Displays text with different heading sizes.
<p> – Paragraph
📌 Description: Represents a paragraph.
💻 Code Example:
<p>This is a paragraph.</p>
<a> – Hyperlink
📌 Description: Creates a hyperlink.
💻 Code Example:
<a href="https://example.com">Visit</a>
<img> – Image
📌 Description: Embeds an image.
💻 Code Example:
💻 Code Example:
<ul>
<li>Item</li>
</ul>
<ol>
<li>First</li>
</ol>
💻 Code Example:
<li>Item</li>
<table> – Table
📌 Description: Creates a table.
💻 Code Example:
<table border='1'>
...
</table>
💻 Code Example:
<tr>
<td>Cell</td>
</tr>
💻 Code Example:
<th>Name</th>
💻 Code Example:
<td>John</td>
<form> – Form
📌 Description: Creates a form.
💻 Code Example:
<form action='/submit'>...</form>
💻 Code Example:
<label> – Label
📌 Description: Label for form input.
💻 Code Example:
<label for="user">Name:</label>
<button> – Button
📌 Description: Clickable button.
💻 Code Example:
<button>Click Me</button>
💻 Code Example:
<textarea></textarea>
<select> – Dropdown
📌 Description: Creates a dropdown list.
💻 Code Example:
<select><option>One</option></select>
💻 Code Example:
<option value='1'>One</option>
💻 Code Example:
<div>Block Content</div>
💻 Code Example:
<span>Inline</span>
💻 Code Example:
Line 1<br>Line 2
💻 Code Example:
<hr>