Meaning: Headings are titles for sections on a page. <h1> is the largest, <h6> is the smallest.
Usage: Using headings helps structure the HTML and is SEO-friendly.
Example:
<h1>Codex(webwise) Frontend Learning </h1>
<h2>HTML basics</h2>
Meaning: Paragraphs are blocks of text. They automatically create line breaks.
Usage: Using <p> makes text readable
Example:
<p> HTML stands for HyperText Markup Language. It is used to structure content on the web.</p>
<p> This is another paragraph explaning HTML elements. </p>
Meaning: <br> creates a line break without starting a new paragraph.
Usage: Useful for addresses, poems, or short lines.
Example:
<p>My address:<br>123 webwise Street<br>Dar es salaam,Tanzania</p>
Meaning: Links navigate to other pages or websites.
Usage: Always use href to define the URL.
Tip: Use descriptive text for accessibility
Example:
<a href="https://webwise.netlify.app" target="_blank">Visit Codex</a>
Meaning:
<img src="logo.png" alt="Codex Logo" width="200">
A. Unordered List (<ul>)
Meaning: A list without order (bullets).
Example:
<ul>
<li>HTML Basics</li>
<li>CSS Basics</li>
<li>Javascript Basics</li>
</ul>
B. Ordered List (<ol>)
Meaning: A numbered list
Example:
<ol>
<li>Learn HTML</li>
<li>Learn CSS</li>
<li>Learn Javascript</li>
</ol>
Meaning: Forms collect input from users.
Example:
<form>
<label for="name">Name:</label>
<input type="text" id="name" placeholder="Enter your name">
<button type="submit">Submit</button>
</form>
Header: Usually the top of the page (title, nav).
Footer: Bottom of the page (contact, copyright).
Section: Section of content.
Article: Independent content block.
Example:
<header>
<h1>Webwise Frontend Learning</h1>
</header>
<section>
<h2>HTML Basics</h2>
<p>Learn HTML elements step by step.</p>
</section>
<footer>
<p>Contact: sahny@gmail.com</p>
</footer>
Meaning: Notes inside code, not visible on the page.
Usage: Helps organize code & leave reminders.
Example:
<!-- This is the main title -->
<h1>Welcome to Webwise </h1>
<!-- This section is about HTML basics -->
<p>HTML helps structure web pages.</p>
Mini-task: Add at least 2 comments in your HTML code explaining what part does.