riocantre

Rio Cantre

Posted on December 4, 2021

Day 80/100 Semantics

Most people used the static HTML before but as years passed by semantic versions become a big scope of today's HTML structures which defines and make it more readable.

Semantics

Why use Semantic HTML?

  • Accessibility: Semantic HTML makes webpages accessible for mobile devices and for people with disabilities as well. This is because screen readers and browsers are able to interpret the code better.
  • SEO: It improves the website SEO, or Search Engine Optimization, which is the process of increasing the number of people that visit your webpage. With better SEO, search engines are better able to identify the content of your website and weight the most important content appropriately.
  • Easy to Understand: Semantic HTML also makes the website’s source code easier to read for other web developers.

Code Snippets

<main>
  <header>
    <h1>Types of Sports</h1>
  </header>
  <article>
    <h3>Baseball</h3>
    <p>
      The first game of baseball was played in Cooperstown, New York in the summer of 1839.
    </p>
  </article>
</main>
Enter fullscreen mode Exit fullscreen mode
<figure>
  <img src="overwatch.jpg" alt="image">
</figure>
Enter fullscreen mode Exit fullscreen mode
<audio>
  <source src="iAmAnAudioFile.mp3" type="audio/mp3">
</audio>
Enter fullscreen mode Exit fullscreen mode


semantics

💖 💪 🙅 🚩
riocantre
Rio Cantre

Posted on December 4, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Day 88/100 Truthy and Falsy
100daysofcode Day 88/100 Truthy and Falsy

December 12, 2021

Day 86/100 Font Weight
100daysofcode Day 86/100 Font Weight

December 10, 2021

Day 81/100 Variables
100daysofcode Day 81/100 Variables

December 5, 2021

Day 80/100 Semantics
100daysofcode Day 80/100 Semantics

December 4, 2021

Day 79/100 Tables
100daysofcode Day 79/100 Tables

December 3, 2021