Small HTML Tags That Developers Often Ignore
Many developers use formatting tags like:
<b>
<i>
But very few think about semantic meaning.
The same thing happens with navigation. Developers often create menus using plain <div> elements instead of semantic tags.
These small decisions affect:
- Accessibility
- SEO
- Screen readers
- Site structure clarity
Let's look at two common HTML mistakes developers make.
1. <b> vs <strong> — They Look the Same, But They Aren't
Most developers write:
<p>This is <b>important</b> information.</p>
Visually it works.
But <b> only styles text as bold.
It does not add semantic importance.
A better version is:
<p>This is <strong>important</strong> information.</p>
Why <strong> Is Better
<strong> tells browsers and assistive technologies that the content is important.
Benefits:
- Better accessibility
- Clearer document structure
- Helps screen readers emphasize the content
Screen readers will actually stress the word.
2. <i> vs <em> — Emphasis vs Style
Another common pattern:
<p>I <i>really</i> like this feature.</p>
Again, this only changes the style.
The semantic version:
<p>I <em>really</em> like this feature.</p>
Why <em> Matters
<em> adds emphasis, not just italics.
Browsers and screen readers interpret it as emphasized speech.
This improves:
- Accessibility
- Meaningful HTML structure
- Content clarity
Quick Comparison
| Tag | Purpose |
|---|---|
<b> |
Visual bold text |
<strong> |
Important content |
<i> |
Visual italics |
<em> |
Emphasized meaning |
For modern frontend development, semantic tags are always better.
3. Using <nav> for Site Structure
Another mistake developers make is building navigation like this:
<div class="menu">
<a href="/">Home</a>
<a href="/blog">Blog</a>
<a href="/contact">Contact</a>
</div>
It works visually.
But the correct semantic structure is:
<nav>
<a href="/">Home</a>
<a href="/blog">Blog</a>
<a href="/contact">Contact</a>
</nav>
Why <nav> Matters
<nav> tells browsers and search engines:
This section contains primary navigation links.
Benefits include:
- Clearer document structure
- Better accessibility
- Improved crawler understanding
Search engines like **Google analyze semantic HTML to understand page layout.
Bonus Tip: Don't Overuse <nav>
Only use <nav> for major navigation blocks.
Good examples:
- Main site navigation
- Footer navigation
- Pagination links
Avoid using it for every list of links.
Best Practice Example
A clean semantic structure looks like this:
<header>
<nav>
<a href="/">Home</a>
<a href="/articles">Articles</a>
<a href="/contact">Contact</a>
</nav>
</header>
<main>
<article>
<h1>Semantic HTML Matters</h1>
<p>This is <strong>very important</strong> for SEO.</p>
<p>I <em>highly</em> recommend using semantic tags.</p>
</article>
</main>
This improves:
- readability
- accessibility
- maintainability
- SEO structure
Final Thought
Many developers focus on JavaScript frameworks and forget the basics of HTML.
But good frontend engineering starts with clean semantic markup.
Small tags like:
<strong><em><nav>
can make your website more accessible, structured, and SEO-friendly.
Sometimes the smallest HTML decisions create the biggest impact.
Top comments (0)