IMPLIMENTING SEMENTIC.HTML



This content originally appeared on DEV Community and was authored by Sunday Onyango


INTRODUCTION
This involves using HTML elements according to their meaning /purpose neither than solely for their default visual appearence,which provides structures &meaning on your content improving SEO and maintability.
The following are key aspects of implementing Semantic.HTML.
BODY

USE APPROPRIATE SEMANTIC ELEMENT

This makes the browser to interprate what you are trying to do,the elements are as followed.

header
nav
main
article
section
aside
footer

b)Content elements
h1-h2-for heading
p-for paragraph
ul,ol,li-for listig
strong-for strong importance
em-for emphasis
figure,figcaption-for figures,captions,etc

C)Form elements
label,inpute,textara,select,option-to create accessible forms.

STRUCTURE CONTENT LOGICALLY

-Organize your content accordingly using heading(h1toh6)to reflect the document outline.
-Group related content within sectionor article elements,and also place main content withinmain elements.

PROVIDE TEXT ALTERNATIVES FOR NON-TEXT CONTENT

-Use the ALT attribute for img elements to describe the image content for screen readers.Also include captions for images and figures using figcaption.
-Provide transcipts or description for audio and video content.

CONSIDER ACCESSIBILITY

-Semantic.HTML improves accessibility for effective technologies like screen readers.Use ARIA roles and attributes when necessary to provide additional semantic meaning/interactivity that isn’t fully conveyed by HTML elements,but use nativebsemantic HTML elements first.

REGULATE/AVOID OVERUSING NON=SEMANTIC ELEMENTS

-Use CSS for visual presentation and layout,keeping you HTML focused on content structure & MEANING.
CONCLUSION
-According to the assumptions from the content above i conclude that implementing semantic.HTML can improve accessibility,SEO and maintanability.
-Also you can find out on the web development at https://www.youtube.com/watch?v=8sXRyHI3bLw


This content originally appeared on DEV Community and was authored by Sunday Onyango