Case Study
Case Study
<html>
Defines the root of an HTML document. All content must be inside this tag.
Example:
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<p>Hello, World!</p>
</body>
</html>
<head>
Example:
<head>
<title>Website Title</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<title>
Example:
<body>
Example:
<body>
<h1>Welcome to my website</h1>
<p>This is a sample paragraph.</p>
</body>
<h1> to <h6>
Headings for different sections, where <h1> is the largest and <h6> is the smallest.
Example:
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Smaller Subheading</h3>
<p>
Example:
<b>
Example:
<i>
Example:
<u>
Underlines text.
Example:
<strong>
Example:
<em>
Example:
Example:
<hr>
Example:
<p>Section 1</p>
<hr>
<p>Section 2</p>
<mark>
Highlights text.
Example:
<ul>
Example:
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
<ol>
Example:
<ol>
<li>First</li>
<li>Second</li>
</ol>
<li>
Example:
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
<a>
Defines a hyperlink.
Example:
<img>
Embeds an image.
Example:
<video>
Example:
<video controls>
<source src="video.mp4" type="video/mp4">
</video>
<audio>
Example:
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
</audio>
<iframe>
Example:
<table>
Creates a table.
Example:
<table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
<tr>
Example:
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<th>
Example:
<th>Table Header</th>
<td>
Example:
<td>Table Data</td>
<form>
Example:
<input>
Example:
<button>
Creates a clickable button.
Example:
<button>Click Me</button>
<label>
Example:
<label for="name">Name:</label>
<input type="text" id="name">