HTML Character Entities
Karakter Khusus
Karakter Entity Beberapa karakter ada yang mempunyai arti tersendiri dalam HTML, seperti tanda lebih kecil ( < ), memiliki arti start tag dalam HTML. ◗ Bila kita menginginkan browser menampilkan tanda < kita harus menyisipkan karakter entity didalam source HTML. ◗
◗
◗
Karakter entity terdiri dari tiga macam yakni sebuah ampersand (&), sebuah nama entity atau sebuah tanda # dan sebuah entity number, dan yang terakhir sebuah tanda semicolon ( ; ). Untuk menampilkan tanda lebih kecil pada dokumen HTML kita harus menulis : < atau <. Keuntungan dari penggunaan nama singkatan lebih mudah mengingatnya dari pada urutan angka kodenya. Kerugiannya tidak semua browser mendukung penggunaan singkatan yang baru, sedangkan dengan penggunaan nomor
Hasi Keterangan l non-breaking space
Nama Nomo Entity r Entity
<
less than
0; < <
>
greater than
>
&
ampersand
& &
"
quotation mark
" "
'
apostrophe
>
'
Hasi Keterangan l
Nama Nomo Entity r Entit y ¢ ¢
¢
cent
£
pound
¥
yen
£ £ ; ¥ ¥
§
section
§
©
copyright
© ©
®
registered trademark ®
×
multiplication
× ×
÷
division
÷ ÷
§ ®
H Keterangan asil
Nama N Entity omor Entit y
"
quotation mark
" " ;
&
ampersand
& & ;
<
less-than
<
< ;
>
greater-than
>
> ;
Hasil
Keterangan
¡ ¤ ¢ £ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³
non-breaking space inverted exclamation mark currency cent pound yen broken vertical bar section spacing diaresis copyright feminine ordinal indicator angle quotation mark (left) negation soft hyphen registered trademark spacing macron degree plus-or-minus superscript 2 superscript 3
Nama Entity ¡ ¤ ¢ £ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³
Nomor Entity ¡ ¤ ¢ £ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³
Hasil Keterangan ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ × ÷
Nama Entity spacing acute ´ micro µ paragraph ¶ middle dot · ;¸ spacing cedilla superscript 1 ¹ masculine ordinal º indicator angle quotation mark » (right) fraction 1/4 ¼ fraction 1/2 ½ fraction 3/4 ¾ inverted question mark ¿ multiplication × division ÷
Nomor Entity ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ × ÷
Hasil Keterangan Œ œ Š š Ÿ ˆ ˜ € ™
Nama Entity
capital ligature OE Œ small ligature oe œ capital S with caron Š small S with caron š capital Y with diaeres Ÿ modifier letter circumflex ˆ accent small tilde ˜ en space em space thin space euro € trademark
Nomor Entity Œ œ Š š Ÿ ˆ ˜ € ™
– — ‘ ’ ‚ “ ” „ † ‡ ‰ ‹ ›
zero width nonjoiner zero width joiner lefttoright mark righttoleft mark en dash – em dash — left single quotation mark ‘ right single quotation mark ’ single low9 quotation mark ‚ left double quotation mark “ right double quotation mark ” double low9 quotation mark „ dagger † double dagger ‡ per mille ‰ single leftpointing angle ‹ quotation single rightpointing angle ›
– — ‘ ’ ‚ “ ” „ † ‡ ‰ ‹ ›