Belajar Element HTML: <em>

Elemen <em> menandai teks yang memiliki penekanan pada isi konten.

Tag ini digunakan ketika kamu harus menekankan kata atau frase tertentu dalam sebuah kalimat.

Syntax

Tag <em> ditulis seperti <em></em> dengan konten emphasized ditempatkan diantara tag pembuka dan penutup.

Seperti ini:

<em>Emphasized content...</em>
<p>"What is your occupation?" asked Jane.</p>
<p>"I am a comedian" replied Rupert.</p>
<p>"Did you say that you are a <em>chameleon</em>".</p>
<p>"No" said Rupert, "I am a <em>comedian</em>".</p>
<p>"You've <em>got</em> to be joking... I don't believe you!" replied Jane, rolling over with laughter.</p>
<p>Rupert couldn't take this anymore, he didn't know what to say, so he shouted into the microphone "<em>I <em>am</em> a comedian!</em>"</p>
<p>Finally, the crowd erupted with laughter.</p>

Pengaturan Default CSS

Sebagian besar browser menampilkan elemen <em> dengan pengaturan CSS:

em {
  font-style: italic;
}