Semantics in my HTML.

It may seem convenient to markup your webpages with container divs throughout because after all, they get the job done. But lets understand that your markup combined with all its styling and scripts to make it an interactive website will be lacking tha…


This content originally appeared on DEV Community and was authored by Kwame Chidi

It may seem convenient to markup your webpages with container divs throughout because after all, they get the job done. But lets understand that your markup combined with all its styling and scripts to make it an interactive website will be lacking that basic ingredient that is required to meet today's web standards.

Search engine optimization for webpages is as basic a need as id cards are at banking halls. No id, no access. Hence specially-named containers and machine readable markups can help search engines and browsers more easily identify how our pages are arranged.

Semantic HTML or semantic markup is HTML that introduces meaning to the web page rather than just presentation. For example, a p tag indicates that the enclosed text is a paragraph. This is both semantic and presentational because people know what paragraphs are, and browsers know how to display them

Semantic HTML5 also results in cleaner and easily maintainable code that is also machine readable and easily understood because not everything is a div tag or is in one.

Semantics in HTML offers an offline application cache facility which will load the page the user has visited even if the user is temporarily offline. This feature will help the files to load much faster and reduces load on server.

So all these benefits and importance, how do we apply semantic HTML? It really is simple, nothing close to learning a new framework or organic chemistry. Luckily there are sample HTMLS layouts like the one below and flowcharts as well as HTML5 elements you can make use of in you web dev practice.
Image description

Making use of semantic HTML5 won't optimize your website for search engines entirely but its the foundation to making your webpages visible and machine readable.


This content originally appeared on DEV Community and was authored by Kwame Chidi


Print Share Comment Cite Upload Translate Updates
APA

Kwame Chidi | Sciencx (2022-03-20T16:02:50+00:00) Semantics in my HTML.. Retrieved from https://www.scien.cx/2022/03/20/semantics-in-my-html/

MLA
" » Semantics in my HTML.." Kwame Chidi | Sciencx - Sunday March 20, 2022, https://www.scien.cx/2022/03/20/semantics-in-my-html/
HARVARD
Kwame Chidi | Sciencx Sunday March 20, 2022 » Semantics in my HTML.., viewed ,<https://www.scien.cx/2022/03/20/semantics-in-my-html/>
VANCOUVER
Kwame Chidi | Sciencx - » Semantics in my HTML.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/03/20/semantics-in-my-html/
CHICAGO
" » Semantics in my HTML.." Kwame Chidi | Sciencx - Accessed . https://www.scien.cx/2022/03/20/semantics-in-my-html/
IEEE
" » Semantics in my HTML.." Kwame Chidi | Sciencx [Online]. Available: https://www.scien.cx/2022/03/20/semantics-in-my-html/. [Accessed: ]
rf:citation
» Semantics in my HTML. | Kwame Chidi | Sciencx | https://www.scien.cx/2022/03/20/semantics-in-my-html/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.