Tugas PKL H4 Kamis, 11, Januari 2024



 

Background color berfungsi untuk merubah warna background sebuah tulisan sesuai warna yang kita inginkan


Contoh : 

<body style="background-color:powderblue;">

<h1>smk ypm 4 taman</h1>
<p>beringin bedo.</p>

</body>
jadi sebelum menulis jika ingin mengubah warna background yang kita iginkan wajib menulis <body style="background-color:(ketik warna yang kaliann inginkan);">



HTML FORMATING

HTML Formatting Elements

Formatting elements were designed to display special types of text:

  • <b> - Bold text
  • <strong> - Important text
  • <i> - Italic text
  • <em> - Emphasized text
  • <mark> - Marked text
  • <small> - Smaller text
  • <del> - Deleted text
  • <ins> - Inserted text
  • <sub> - Subscript text
  • <sup> - Superscript text



HTML Quotations

<abbr> Mendefinisikan singkatan atau akronim

<address> Mendefinisikan informasi kontak untuk penulis/pemilik dokumen

<bdo> Mendefinisikan arah teks

<blockquote> Mendefinisikan bagian yang dikutip dari sumber lain

<cite> Mendefinisikan judul sebuah karya

<q> Mendefinisikan kutipan pendek secara inline


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

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

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

<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 60 years, WWF has worked to help people and nature thrive. As the world's leading conservation organization, WWF works in nearly 100 countries. At every level, we collaborate with people around the world to develop and deliver innovative solutions that protect communities, wildlife, and the places in which they live.
</blockquote>

<p><cite>The Scream</cite> by Edvard Munch. Painted in 1893.</p>

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




HTML COMMENTS

Komentar HTML tidak ditampilkan di browser, namun mereka dapat membantu mendokumentasikan kode sumber HTML Anda.

Perhatikan bahwa ada tanda seru (!) pada tag pembuka, tetapi tidak ada pada tag penutup.

contoh:

<!-- <p>bisa diisi selain paragraf & coding lain</p> -->




LihatTutupKomentar