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

many to many - Django Rest Framework ManyToMany filter multiple values -

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

Java Entity Manager - JSON reader was expecting a value but found 'db' -