health-check domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/yogisv5/sitesbyyogi.com/wp-includes/functions.php on line 6260Objective: Learn how to add formatted text, hyperlinks, and images to your web pages while keeping your code clean and semantic.
| Type | Example Tags | Behavior |
|---|---|---|
| Block-level | <div>, <p>, <h1>–<h6>, <section> |
Start on a new line; take full width. |
| Inline | <a>, <span>, <img>, <strong> |
Flow within text; do not start new lines. |
<p>This is a <strong>strong</strong> word inside a paragraph.</p>
<h1>Main Page Title</h1>
<h2>Section Title</h2>
<p>This is a paragraph of text that describes something important.</p>
<h1> per page (main title).<h2>–<h6> for subsections.| Tag | Function |
|---|---|
<b> | Bold text (visual only) |
<strong> | Important text (semantic bold) |
<i> | Italic text (visual only) |
<em> | Emphasized text (semantic italic) |
<u> | Underline text |
<mark> | Highlight text |
<small> | Smaller text |
<br> | Line break |
<hr> | Horizontal rule (divider) |
<p>I am learning <strong>HTML</strong> and <em>CSS</em> at <mark>StreetGeek Academy</mark>.</p>
<a href="https://www.streetgeek.academy">Visit StreetGeek Academy</a>
| Type | Example |
|---|---|
| External | <a href="https://example.com">Visit Site</a> |
| Internal | <a href="about.html">About Us</a> |
<a href="mailto:info@streetgeek.academy">Email Us</a> | |
| Telephone | <a href="tel:+18005551234">Call Us</a> |
| Anchor (jump link) | <a href="#contact">Go to Contact</a> |
Tip: Open in a new tab + hover text
<a href="https://sitesbyyogi.com" target="_blank" title="Yogi’s Portfolio">SitesByYogi</a>
Images are inline elements — they sit inside your content.
<img src="streetgeek-logo.png" alt="StreetGeek Academy Logo" width="200" height="200">
| Attribute | Description |
|---|---|
src | Path to the image file |
alt | Description (accessibility & SEO) |
width / height | Optional dimensions |
title | Tooltip on hover |
images/photo.jpghttps://example.com/photo.jpg💡 Always use meaningful alt text.
html-basics/
├── index.html
├── about.html
├── contact.html
└── images/
├── profile.jpg
├── logo.png
└── banner.jpg
Use lowercase names and hyphens. ✅ profile-photo.jpg not Profile Photo.JPG
<ul>
<li>HTML</li>
<li>CSS</li>
<li>PHP</li>
</ul>
<ol>
<li>Plan</li>
<li>Code</li>
<li>Deploy</li>
</ol>
<dl>
<dt>HTML</dt>
<dd>Defines the structure of a webpage.</dd>
</dl>
Lists are perfect for nav menus, product features, or FAQs.
<section>
<h2>About Me</h2>
<img src="images/profile.jpg" alt="Yogi’s Photo" width="150">
<p>Hi, I’m Yogi, a <strong>WordPress Developer</strong> and <em>performance specialist</em>.</p>
<p>Follow my work at
<a href="https://sitesbyyogi.com" target="_blank">WPNfinite</a>.
</p>
</section>
✅ Exercise 1: Create a “Profile Page”
profile.html in your html-basics folder.<h1>), a short bio paragraph, a photo (<img>), a list of 3 hobbies or tools, and an external link.<h1>About Yogi</h1>
<img src="images/yogi.jpg" alt="Photo of Yogi" width="200">
<p>I'm a WordPress developer learning front-end web design.</p>
<ul>
<li>Web Design</li>
<li>Music Production</li>
<li>Teaching</li>
</ul>
<a href="https://sitesbyyogi.com" target="_blank">Visit My Site</a>
alt text for every image.<b> and <strong>?alt attribute important for images?<a> tag stand for and what is it used for?<em> or <strong> tag.<hr> to separate sections and a <mark> to highlight a keyword.Next up: 👉 MODULE 4: Lists, Tables, and Semantic HTML — organize structured data like a pro.