Problem Statement
Which tag is used to emphasize text with semantic meaning?
Explanation
The em tag is used to emphasize text with semantic meaning. The em stands for emphasis. This tag makes text italic and also tells screen readers and search engines that this text has emphasis. This is different from the i tag, which only makes text italic visually without semantic meaning. Use em when you want to stress or emphasize certain words in a sentence. Use i for technical terms, foreign words, or when you just want italic styling without emphasis. Understanding semantic HTML is crucial for modern web development and is often asked in interviews.
Code Solution
SolutionRead Only
<p>I <em>really</em> need to finish this project.</p> <p>The term <i>HTML</i> stands for HyperText Markup Language.</p>