DEV Community

Cover image for A Developer’s Guide to Implementing Semantic HTML Effectively
Denzel Ochieng
Denzel Ochieng

Posted on

A Developer’s Guide to Implementing Semantic HTML Effectively

Introduction.

Growing up as a self-taught developer I used to just write HTML code using the common separators such as divs not knowing that it had an impact in the SEO and Accessibility.

You probably have made the same mistake as a developer but after reading this article you will have a better understanding on how to implement semantic HTML in your code to enhance Search Engine Optimization in the next website that you build.

By the end of this article you`ll have learned:

  • SEO implementation.
  • Accessibility implementation.
  • Best Semantic HTML practices togather with examples.

Semantic HTML

Web design nowadays is not just about displaying content on a page its about creating experiences understood both by humans and machines and thats where Semantic HTML comes into picture.

Semantic HTML - It refers to the usage of HTML elements that convey meaning beyond just presentations.

Think of it as labels that make it easier for understanding. For instance ,picture yourself entering into a company building and the doors are not labelled. You will really have a hard time finding a specific room i.e the accountants office whereas if the rooms are labelled ,it becomes easier for someone to know where they are going.

Examples of Semantic HTML includes:

  • header – represents the introductory content of a page.

  • nav – defines a section of navigation links.

  • main – identifies the main content of a page.

  • article – represents an independent piece of content.

  • footer – represents footer information about its nearest section or page.

Code Examples

1. Semantic HTML

Top comments (0)