This guide demonstrates common Inline elements, Media, and Tables with their code and actual output.
Using <a> tags for navigation (Links may not work
in this demo context).
<a href="/">Block elements page</a> |
<a href="./inline_elements.html">Inline elements page</a> |
<a href="./form_elements.html">Form elements page</a>
Using <button> tags for user interaction.
<button type="button">Click Me!</button>
<button type="submit">Submit</button>
Various tags for formatting text within a paragraph.
<p>Hello I am <b>superman!</b></p>
<p>I am very <strong>strong</strong></p>
<p>I have <i>lasser eyes</i></p>
<p>I can <em>fly</em> in the sky</p>
<p>I have a dog named <mark>Krypto</mark></p>
<p>He's a <small>strong</small> dog too</p>
<p>Lorem ipsum dolor <del>sit</del> amet.</p>
<p><ins>Lorem</ins> ipsum dolor sit amet.</p>
Hello I am superman!
I am very strong
I have lasser eyes
I can fly in the sky
I have a dog named Krypto
He's a strong dog too
Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet.
Useful for chemical formulas or ordinal numbers.
<h3>H<sub>2</sub>O</h3>
<h3>13<sup>th</sup> floor</h3>
What it does: HTML entities let you render characters
that the parser would otherwise misinterpret as markup — specifically
<, >, &, and
" — plus hundreds of typographic and symbolic
glyphs.
When to use it in real projects:
—,
«, or © instead of
copy-pasting Unicode characters that can get mangled by encoding
mismatches in email or legacy systems.
<h2>Is 71 > 13 & 22 < 5?</h2>
What it does: Emojis are treated as regular text characters (Unicode) in HTML. They don't require special image tags, just the character itself.
Pro Tip: To quickly insert emojis while coding, use
the system shortcuts: Win + . (Windows) or
Cmd + Ctrl + Space (macOS).
When to use it in real projects:
<p>Warning: Server is down 🚨</p>
<button>Add to Cart 🛒</button>
<!-- Emoji List Marker -->
<ul style="list-style-type: '🚀 ';">
<li>Fast Delivery</li>
<li>Global Support</li>
</ul>
Warning: Server is down 🚨
Hover over the text to see the full meaning.
<abbr title="Inventive Media">IM</abbr>
Using <br> to force a new line.
<p>
Lorem, ipsum dolor sit amet... <br>
Possimus cupiditate...
</p>
Lorem, ipsum dolor sit amet...
Possimus cupiditate...
Defining contact information.
<address>
Inventive Media Philippines<br>
Karmela Building 2590<br>
Makati City, Metro Manila<br>
Philippines<br>
<a href="mailto:inventivemedia.ph@gmail.com">inventivemedia.ph@gmail.com</a><br>
<a href="tel:+63288242145">+63 2 88242145</a>
</address>
Blockquotes, citations, and inline quotes.
<h3>Block quote</h3>
<blockquote cite="https://www.inventivemedia.com.ph/faculty/">
It is a fact that people...
</blockquote>
<h3>Citation</h3>
<p>One of the best novels I've read is <cite>To Kill a Mockingbird</cite> by Harper Lee.</p>
<h3>Quote</h3>
<p>Steve Jobs once said, <q>Innovation distinguishes between a leader and a follower.</q></p>
It is a fact that people need to study and have the right to quality education. Education is perhaps the best solution to end illiteracy, injustice and poverty.
One of the best novels I've read is To Kill a Mockingbird by Harper Lee.
Steve Jobs once said,
Innovation distinguishes between a leader and a follower.
Embedding multimedia and external content.
<!-- 1. Images -->
<h4>Picsum Photo</h4>
<img src="https://picsum.photos/300/160?random=1" alt="Picsum example" width="300">
<h4>Pravatar Avatar</h4>
<img src="https://i.pravatar.cc/300" alt="Pravatar example" width="150">
<h4>LoremFlickr People</h4>
<img src="https://loremflickr.com/300/160/people" alt="LoremFlickr example" width="300">
<!-- 2. Audio -->
<audio controls autoplay muted loop>
<source src="./audio/music.mp3" type="audio/mp3">
</audio>
<!-- 3. Video -->
<video height="220" width="340" controls autoplay muted loop>
<source src="./video/videoplayback.mp4" type="video/mp4">
</video>
<!-- 4. PDF (Embed) -->
<embed src="./misc/html-slides.pdf" width="500" height="500" type="application/pdf">
<!-- 5. IFrame (Google Map) -->
<iframe src="https://www.google.com/maps/embed?..." width="250" height="250" style="border:0;" allowfullscreen="" loading="lazy"></iframe>
1. Images:
2. Audio:
3. Video:
4. PDF (Embed):
5. IFrame (Google Map):
The <a> tag creates clickable hyperlinks. The
href attribute defines the destination.
<!-- Relative URL: path is relative to the current file -->
<a href="block_elements.html">Go to Block Elements (Relative)</a>
<!-- Absolute URL: full address including protocol and domain -->
<a href="https://www.google.com" target="_blank">Go to Google (Absolute)</a>
<a href="block_elements.html">Block Elements Lesson</a>
<a href="https://developer.mozilla.org" target="_blank">MDN Web Docs</a>
<a href="https://www.google.com" target="_blank">Open Google in New Tab</a>
<a href="mailto:hello@example.com">Send us an email</a>
<a href="tel:+639171234567">+63 917 123 4567</a>
<a href="./misc/html-slides.pdf" target="_blank">View HTML Slides (PDF)</a>
<a href="./misc/Inventive-Media-HTML-CSS-Bootstrap.zip" download="Inventive-Media-HTML-CSS-Bootstrap">Download Course Files (.zip)</a>
<!-- The link -->
<a href="#anchor-target">Jump to the target section below</a>
<!-- The target element -->
<h4 id="anchor-target">You landed here!</h4>
(scroll down — the target is a few lines below)
This element has id="anchor-target", making it a named
anchor destination.