Ever wondered how search engines understand your website’s structure? Or why some parts of your text stand out while others don’t? The answer lies in semantic HTML5. In this blog, we’re going to dive into why semantic elements like <mark>, <strong>, and many others are not just about visual appeal, but they also give meaning to your content.
Do you know about HTML5 Semantic?
So, semantic HTML is all about using HTML tags that clearly define the purpose and meaning of the content they are associated with. Unlike non-semantic tags like <div> or <span> that are just for layout or styling, semantic tags give extra info about the type of content.
So it’s like, imagine you’re reading a newspaper. There’s the main headline, subheadings, paragraphs, quotes, and other important info. Each part has its own role that’s pretty easy to spot. Semantic HTML does the same thing for the web. It helps:
Search Engine Optimization (SEO): Understanding the relevance and hierarchy of your content can boost your search rankings.
Accessibility: It lets screen readers and other assistive technologies interpret the page correctly for users with disabilities.
Developers: Making the code easier to read, manage, and understand for other developers.
Get to know the popular semantic elements.
Let’s check out some commonly used semantic elements and how you can make the most of them:
The first one is the <mark> tag, which is used to mark or highlight relevant parts of text in a specific context. It’s like using a digital highlighter.
<p>I want to buy fruits like <mark>apples</mark>, oranges, and bananas.</p>
In the example above, ‘apple’ is what we want to highlight, maybe because it’s the most important fruit or the one people are looking for.
The second one is the <strong> tag, which is used to show that its content is really important, serious, or urgent. It adds a strong emphasis.
<p>Don't forget to always <strong style="color: red;">save energy</strong> for the future.</p>
The text inside <strong> will visually look bold, but more than that, it tells the browser and assistive technology that the part has significant meaning.
The third one is the <em> tag, which is used to emphasize a word or phrase, usually to change the meaning or intonation of a sentence.
<p>I can't believe that <em>really</em> happened!</p>
By default, text in <em> will be displayed in italics, but the goal is to add verbal emphasis.
Next up, there’s the <cite> tag when you’re quoting a work like a book, song, movie, etc. Use the <cite> tag to show the title of that work.
<p>As it says in <cite>The Hitchhiker's Guide to the Galaxy</cite>, "Don't panic."</p>
Next up, the <abbr> tag is used to define abbreviations or acronyms. You can add a title attribute to give the full version.
<p>I'm going to take an <abbr title="HyperText Markup Language">HTML</abbr> training next week.</p>
When users hover their cursor over ‘HTML’, a tooltip will show ‘HyperText Markup Language’.
Lastly, there’s the <time> tag, which is used to specify a date or time. This is super helpful for events, blog posts, or any time-sensitive information.
<p>The meeting will take place on <time datetime="2025-07-25T10:00:00Z">Friday, July 25, 2025, at 5 PM WIB</time>.</p>
The datetime attribute on the <time> tag gives a machine-readable date and time format.
So that’s it, using semantic HTML5 isn’t just about sticking to standards, it’s about building a better, more accessible, and more efficient web. By understanding and applying elements like <mark>, <strong>, and others, you’re not just creating visually stunning web pages, but also giving rich meaning and context to your content.
Rizky Ramadhan
Content Writer
I am Rizky Ramadhan, a content writer and programmer who is passionate about sharing knowledge and experiences through writing and coding.
Finding the perfect font can be the key to success for any design project. Serif fonts give a classic and timeless vibe, while sans-serif fonts are the go-to for modern designs. Clean, simple, and easy to read, these fonts are everywhere—from websites and mobile apps to branding and print materials. But have you ever thought […]
As a developer, I’m always looking for ways to create something unique and completely under my control. When I decided to start a personal blog, I knew I didn’t want to be tied down to any pre-made themes or templates. I wanted the freedom to design the front-end exactly how I wanted it, without sacrificing […]
Do you often find it difficult to explain complex workflows? Or maybe you want to present your business processes in a more engaging and easy-to-understand way? If so, then flowchart is the answer! A flowchart, or flowchart, is a visual representation of the steps in a process. With a clear flowchart, communication becomes more effective, […]
Who here feels like their life has gotten easier thanks to artificial intelligence? From movie recommendations to summarizing long documents, AI has become an inseparable part of our daily lives. But what if there was an AI that not only smart but also understands nuances better, is more ethical, and interacts in a more human […]