Web Development Ninjas Question: Download Ninjas Web Developer PDF

Explain me what is “Semantic HTML?”?

Tweet Share WhatsApp

Answer:

Semantic HTML is a coding style where the tags embody what the text is meant to convey. In Semantic HTML, tags like <b></b> for bold, and <i></i> for italic should not be used, reason being they just represent formatting, and provide no indication of meaning or structure. The semantically correct thing to do is use <strong></strong> and <em></em>. These tags will have the same bold and italic effects, while demonstrating meaning and structure (emphasis in this case).

Download Ninjas Web Developer PDF Read All 58 Ninjas Web Developer Questions
Previous QuestionNext Question
Explain me what is the main advantage of loading jQuery library using CDN?Do you know the real difference between HTML and HTML5?