These elements define the basic structure of a webpage.
<html>
<head>
<body>
</body>
</html>
Used to display and format text on the webpage.
<h1>Heading 1</h1>
<p>This is a <strong>strong</strong> paragraph.</p>
Used for creating hyperlinks.
<a href="https://www.example.com">Visit Example</a>
Used for embedding images.
<img src="image.jpg" alt="Image Description">
Used to create forms for user input.
<form>
<input type="text" name="name">
<button>Submit</button>
</form>
Used to create tables.
<table>
<tr><th>Header</th></tr>
</table>
Used to create ordered and unordered lists.
<ul><li>Item 1</li></ul>
<ol><li>First</li></ol>
Elements that provide meaning to the content.
<header>Header Content</header>
<footer>Footer Content</footer>
Used to embed audio and video content.
<audio controls><source src="audio.mp3" type="audio/mp3"></audio>
<video controls><source src="video.mp4" type="video/mp4"></video>
For embedding JavaScript and CSS styles.
<style> body { background-color: #f0f0f0; } </style>
<script> alert("Hello!"); </script>
If you understand, then let's go to CHAPTER 3. Before that, below are different YouTube videos that will help you understand what Elements exactly is. If you don't fully understand Elements yet, go through the resources linked below ⬇️
After getting clarity CHAPTER 2 and HTML meaning to first code of html then go through small exercise question in below section ⬇️
Instructions: Create a webpage with an <h1> header, <h2> subheader, and a <p> paragraph.
Example output:
Welcome to HTML Chapter 2
Subheading: Let's Practice!
This is a basic paragraph element to demonstrate the <p> tag.
Instructions: Create an unordered list of your favorite foods, and include a link to a webpage (e.g., https://www.w3schools.com).
Example output:
Visit the W3Schools Website for more information! Unordered List of Favorite Foods: - Pizza - Ice Cream - Salad
Instructions: Add an image to your webpage using the <img> tag with appropriate attributes.
Example output:
Here's an example image:
[Image]