Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

Character Entities ใน HTML5 คืออะไร?

บางตัวอักษรถูกสงวนใน HTML5 เช่น คุณไม่สามารถใช้ greater than และ less than signs หรือ angle brackets ภายในข้อความ เพราะเบราว์เซอร์อาจเข้าใจผิดว่าเป็น markup

HTML5 processors ต้องรองรับ 5 special characters ต่อไปนี้:

SymbolDescriptionEntity NameNumber Code
"quotation mark""
'apostrophe''
&ampersand&&
<less-than&lt;&#60;
>greater-than&gt;&#62;