What is semantic HTML? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 4

What is semantic HTML?

Html

17th Sep 2020, 2:22 AM
Pushkar Chandra Kumar
Pushkar Chandra Kumar - avatar
3 Respostas
+ 4
Pushkar Chandra Kumar Semantic HTMLĀ is the use ofĀ HTMLĀ markup to reinforce theĀ semantics, or meaning, of the information in webpages and web applications rather than merely to define its presentation or look.Ā Semantic HTMLĀ is processed by traditional web browsers as well as by many other user agents. Image-https://images.app.goo.gl/2BRZ86HRxkAuQzrj6
17th Sep 2020, 2:26 AM
ā€ŽAshwin Maurya
ā€ŽAshwin Maurya - avatar
+ 2
A semantic element clearly describes its meaning to both the browser and the developer. Examples ofĀ non-semanticĀ elements:Ā <div>Ā andĀ <span>Ā - Tells nothing about its content. Examples ofĀ semanticĀ elements:Ā <form>,Ā <table>, andĀ <article>Ā - Clearly defines its content.
17th Sep 2020, 2:29 AM
šŸ‘‘FabVabšŸ‘‘
šŸ‘‘FabVabšŸ‘‘ - avatar
0
Semantic tags are used to understand the code to programmer previously only div was used as container for various element of carious section of page Ex- header of page in a div navigation link in a div 4-5 div for main contents Div for footer which created confusion for coder to analyse code. But now there is a sematic tag for each purpose You can use header tag for header section,nav for navigation links, main,article,section for content aside for adds/additional info , footer for footer section. And it makes easy for coder to analyse different section of code in one view even he came after a month to his/other's code (having semantic tags).
17th Sep 2020, 4:45 AM
Divya Mohan
Divya Mohan - avatar