This guide demonstrates common Inline elements, Media, and Tables with
their code and actual output.
1. Links
Using <a> tags for navigation (Links may not work
in this demo context).
Code:
<a href="/">Block elements page</a> |
<a href="./inline_elements.html">Inline elements page</a>
|
<a href="./form_elements.html">Form elements page</a>
Various tags for formatting text within a paragraph.
Code:
<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>
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:
Code documentation / tutorials: Any page that displays raw HTML snippets must entity-escape
angle brackets, otherwise the browser renders the example instead of showing it as text.
CMS and user-generated content: Always sanitize and entity-encode output from untrusted
sources to prevent XSS attacks — your backend or templating engine should do this automatically, but knowing
why matters.
<p>
Lorem, ipsum dolor sit amet... <br>
Possimus cupiditate...
</p>
Output:
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Possimus cupiditate eligendi totam expedita, nam hic earum eos
officia ipsam quos sunt error, temporibus cum ipsa consequatur
laudantium laboriosam enim ullam.
8. Address
Defining contact information.
Code:
<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>
<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>
Output:
Block quote
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.
Citation
One of the best novels I've read is
To Kill a Mockingbird by Harper Lee.
Quote
Steve Jobs once said,
Innovation distinguishes between a leader and a follower.