Skip to main content
Albero Academy

Text, Links & Lists

Format text with meaning, link between pages, and structure content with ordered, unordered and description lists.

Chapter 2HTML13 min readBeginner friendly
  • #HTML
  • #Text
  • #Links

Chapter 1 gave you headings and paragraphs. Now we add the everyday building blocks: emphasised text, links between pages and sections, and the three kinds of list. The theme throughout is meaning over appearance — pick the tag that describes what the content is, and style it later.

Formatting text

Two pairs of tags look identical on screen but mean different things — and that difference matters for accessibility and SEO:

TagMeaningRenders as
<strong>This content is importantBold
<b>Draw the eye, no extra importanceBold
<em>Stress emphasis (changes meaning)Italic
<i>Alternate voice — a term, a titleItalic

Reach for the meaningful tags first. A screen reader emphasises <strong> and <em>, but treats <b> and <i> as plain text.

text semantics
<p>
Placement support is <strong>included</strong> in every programme —
and it is <em>not</em> an optional add-on.
</p>
<p>Press <kbd>Ctrl</kbd> + <kbd>S</kbd> to save. Output: <code>Saved!</code></p>

Other useful inline tags: <mark> highlights, <small> for fine print, <code> for code, <kbd> for keystrokes, and <br> for a hard line break inside a paragraph.

The anchor element, <a>, is what makes the web a web. The href attribute is the destination:

kinds of links
<!-- Another site (absolute URL) -->
<a href="https://alberoacademy.com">Albero Academy</a>
<!-- Another page in your own site (relative URL) -->
<a href="/pricing.html">See pricing</a>
<!-- Jump to a section on the same page -->
<a href="#curriculum">Skip to curriculum</a>
<!-- Email and phone -->
<a href="mailto:hello@alberoacademy.com">Email us</a>
<a href="tel:+919876543210">Call us</a>

To open a link in a new tab, add target="_blank" — and always pair it with rel="noopener" for security:

new tab, safely
<a href="https://github.com/albero" target="_blank" rel="noopener">
Our GitHub
</a>

Lists

There are three list types, each with a clear job:

  • Unordered <ul> — bullets, when order doesn't matter (features, tags).
  • Ordered <ol> — numbers, when sequence matters (steps, rankings).
  • Description <dl> — term/definition pairs (a glossary, key/value facts).
the three lists
<ul>
<li>Live mentorship</li>
<li>Real projects</li>
<li>Placement support</li>
</ul>
<ol>
<li>Learn the fundamentals</li>
<li>Build a portfolio project</li>
<li>Interview with confidence</li>
</ol>
<dl>
<dt>Duration</dt>
<dd>6 months, live + recorded</dd>
<dt>Level</dt>
<dd>Beginner-friendly</dd>
</dl>

Lists nest — put a <ul> inside an <li> for sub-items. Navigation menus are almost always a <ul> under the hood.

Practice

Recreate a course syllabus as HTML: an ordered list of modules, each module an unordered list of topics, with a link to enrol at the end.

Key takeaways

  1. 01Prefer meaningful tags: <strong>/<em> carry importance; <b>/<i> are purely visual.
  2. 02The <a> element links out (absolute), within your site (relative), or to a #section on the page.
  3. 03Open new tabs with target="_blank" plus rel="noopener".
  4. 04Write self-describing link text — never "click here".
  5. 05Use <ul> for unordered, <ol> when sequence matters, <dl> for term/definition pairs.