Belajar Element HTML: <p>
Tag <p> mewakili paragraf dalam dokumen HTML.
Paragraf merupakan elemen blok yang akan dipisahkan dengan baris baru pada setiap paragraf.
Elemen <p> hanya boleh digunakan ketika tidak ada tag lain yang lebih tepat untuk digunakan.
Sebagai contoh, tag <address> lebih cocok untuk memberikan detail kontak artikel, dan tag <footer> lebih baik untuk sebagian besar konten footer.
Syntax
Tag <p> ditulis seperti <p> </p> dengan teks paragraf disisipkan di antara tag pembuka dan penutup.
Seperti ini:
<p>Teks paragraf disini...</p>
<p>This is a paragraph...</p>
<p>This is a new paragraph...</p><blockquote>
<p>This is a difficult pill for many, especially scientists, to swallow. The concept that there may be a natural
practical limit to the extent of our knowledge - a limit beyond which our perception cannot penetrate - is based
upon the notion that we are only a very small part of a much greater reality.</p>
<p>This humbling thought runs counter to the significance and self-importance we humans place upon ourselves.</p>
<footer>-
<cite>My Big <abbr title="Theory Of Everything">TOE</abbr></cite>
</footer>
</blockquote>Pengaturan Default CSS
Sebagian besar browser menampilkan elemen <p> dengan pengaturan CSS:
p {
display: block;
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
}