html - Simulate em tag in CSS -


this question has answer here:

i trying eradicate html code of tags such <strong>, <i>, <b>, , <em>. understand <strong> , <b> can accomplished in css using font-weight: bold. understand <italic> can accomplished in css using font-weight: italic. however, not sure how css equivalent <em> is. after lot of research, not see difference between <strong>, <b>, , <em>.

therefore, difference between <strong>, <b>, , <em>, , css equivalent of <em>? suggestions appreciated. thank you.

the em tag semantic tag "emphasis" browsers render font-style: italic:

js fiddle


most browsers display element following default values:

em {      font-style: italic; } 

source: html em tag


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -