Bootcamp
Bootcamp
1. What is HTML?
Browsers read HTML and display it as formatted text, images, and interactive elements.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
</body>
</html>
Explanation:
<p> → Paragraphs.
Example:
<h1>Main Heading</h1>
<h2>Subheading</h2>
Example:
<hr>
5. HTML Comments
Hands-on Exercise:
<b> → Bold
<i> → Italic
<u> → Underlined
<mark> → ==Highlighted==
<del> → Strikethrough
Example:
<ol>
<li>Step 1</li>
<li>Step 2</li>
</ol>
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>
Example:
<pre>
Line one
Indented line
</pre>
Hands-on Exercise:
Format a paragraph with different styles and create an ordered & unordered list.
1. Hyperlinks (<a>)
Internal Links:
Video:
<video controls>
</video>
Audio:
<audio controls>
</audio>
Hands-on Exercise:
1. Creating a Table
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Alice</td>
<td>25</td>
</tr>
</table>
<form>
<label>Gender:
</label><br>
<label>Hobbies:
</label><br>
<button type="submit">Submit</button>
</form>
Hands-on Exercise:
1. Semantic HTML
The <div> tag is a container used to group elements together for styling or layout purposes.
It does not have any semantic meaning but is useful for organizing content.
<h2>About Me</h2>
</div>
<h2>Education</h2>
</div>
<div class="section">
<h2>Work Experience</h2>
</div>
Requirements:
Example Layout:
<header>
<h1>My Portfolio</h1>
</header>
<nav>
</nav>
<section>
<h2>About Me</h2>
<p>Brief introduction...</p>
</section>
<footer>
</footer>