Halaman

Sabtu, 10 April 2021

Kutipan dan Element Tanda Kutip dalam Dokumen HTML

Biasanya kutipan diperlukan untuk memperkuat argumen dalam sebuah tulisan. Kutipan sendiri  maknanya adalah suatu kalimat yang berisi ide, pendapat atau gagasan seseorang (biasanya yang dianggap ahli) yang diambil dari berbagai sumber.

Inilah, kenapa kutipan diperlukan untuk memperkuat argumem-argumen dalam sebuah karya tulis.

Kutipan memiliki format khusus dalam penyajiannya didalam sebuah dokumen tergantung dari jenis kutipannya. Apakah itu kutipan panjang atau kutipan pendek. Lebih detailnya mungkin bisa anda pelajari pada materi-materi karya tulis ya...

Yang akan kita bahas disini adalah, bagaimana menyajikan kontent yang berupa kutipan didalam dokumen HTML.

Sebetulnya bisa saja kita menulis secara manual, misalnya saja indentasi, tanda kutip ("), font italic, dan lain-lain.

Namun, selain itu HTML telah menyediakan element-element khusus untuk format kutipan yang browser friendly. Sehingga saat element-element tersebut di implementasikan, browser akan secara otomatis menandai bahwa kontent dengan element tersebut adalah sebuah kutipan.

Apa saja Element-Element nya ?

1. Element  <blockquote>.

 Element <blockquote> digunakan untuk menulis kutipan langsung panjang yang berasal ari sumber lain. Dengan element ini, bagian kutipan akan di beri indentasi menjorok ke arah kanan.

Contoh :

<p>Browser usually indent blockquote element.</p>

<blockquote cite="http://www.worldwildlife.org/who/index.html">

For nearly 60 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by more than one million members in the United States and close to five million globally.

</blockquote>

Browsers usually indent blockquote elements.

For nearly 60 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by more than one million members in the United States and close to five million globally.

2. Element <q>

Dengan element ini, kontent yang berupa kutipan akan di beri tanda kutip ("). Contoh :

<p>Browsers usually insert quotation marks around the q element.</p>

<p>WWF's goal is to: <q>Build a future where people live in harmony with nature.</q></p>

Browsers usually insert quotation marks around the q element.

WWF's goal is to: Build a future where people live in harmony with nature.

3. Element <abbr>.

Untuk menampilkan kontent yang berupa singkatan atau acronym. Contoh :

<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>

<p>Marking up abbreviations can give useful information to browsers, translation systems and search-engines.</p>

The WHO was founded in 1948.

Marking up abbreviations can give useful information to browsers, translation systems and search-engines.

4. Element <address>

Tag/ Element ini digunakan untuk informasi kontak dari sebuah dokumen atau artikel. Bentuknya bisa berisi Alamat Email, URL, alamt rumah, nomor telepon, akun sosial media, atau yang lainnya.

Berikut contohnya :

<p>The HTML address element defines contact information (author/owner) of a document or article.</p>

<address>
Written by John Doe.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

The HTML address element defines contact information (author/owner) of a document or article.

Written by John Doe.
Visit us at:
Example.com
Box 564, Disneyland
USA

5. Element <cite>

Element ini untuk mendefinisikan judul sebuah karya, seperti lukisan, buku, puisi, lagu, film, dll.

Contoh :

<p>The HTML cite element defines the title of a work.</p>
<p>Browsers usually display cite elements in italic.</p>

<img src="img_the_scream.jpg" width="220" height="277" alt="The Scream">
<p><cite>
The Scream</cite> by Edvard Munch. Painted in 1893.</p>

The HTML cite element defines the title of a work.

Browsers usually display cite elements in italic.

The Scream by Edvard Munch. Painted in 1893.

6. Element <bdo>

Kepanjangan dari Bi-Directional Override, digunakan untuk menampilkan teks dengan arah terbalik.

Contoh :

<p>If your browser supports bi-directional override (bdo), the next line will be written from right to left (rtl):</p>

<bdo dir="rtl">This line will be written from right to left</bdo>

If your browser supports bi-directional override (bdo), the next line will be written from right to left (rtl):

This line will be written from right to left

Referensi : w3schools.com

Prev. Chapter Next Chapter
HTML Text Formatting Color Styling

Tidak ada komentar:

Posting Komentar