Kumpulan Informasi Loker dan Kuliah di Indonesia

Tuesday, April 7, 2015

Cara Membuat Entitas Karakter HTML

12:19:00 PM Posted by Abdul Rohman 5 comments
Apa yang telah kita ketahui bahwa untuk menulis dokumen HTLM diawali dengan tanda lebih kecil (<) yang berarti awal tag HTML dan lebih besar (>) yang berarti tag HTML. Jika kita menginginkan browser untuk menampilkan karakter (<) atau (>), kita harus menyisipkan entitas karakter ke dalam source HTML.

Entitas karakter mempunyai 3 bagian yaitu:

  1. ampersand (&)
  2. nama entitas atau sebuah # dan nomor entitas
  3. tanda titik koma (; / semicolon)

Hasil Keterangan Nama
Entitas
Nomor Entitas

r(lingkar)
TM

&
<<
>>
"
<
>
x
tandabagi
Copyright
RegisterTrademark
Trademark
non-breakingspace
Ampersand
AngleQuotationmark
AngleQuaotationmark
tanda kutip
lebih kecil
lebih besar
tanda kali
tanda bagi
&copy;
&reg;

&nbsp;
&amp;
&laquo;
&raquo;
&quot;
&lt
&gt;
&times;
&divide;
&#169
&#174
&#8482
&#161
&#38
&#171
&#187
&#34
&#60
&#61
&#215
&#247


Contoh:

<html>
<body>
<p>
untuk mengawali penulisan dokumen html ditulis &lt;html&gt
</p>
</body>
</html>

Hasilnya:


5 comments:


  1. Printing enthusiasts looking to enhance their apparel designs can find a reliable source online. If you're interested in high-quality options, you might want to visit buy dtf transfers for a variety of products. These transfers offer vibrant colors and durability, making them a popular choice among hobbyists and professionals alike. Whether you're starting a small business or creating custom pieces, exploring this site can be a great step forward.

    ReplyDelete