0% found this document useful (0 votes)
4 views14 pages

Lm7. Special Character Entities

Entities in HTML are used to display reserved characters and special symbols correctly in browsers. They are written as &code; and help prevent errors by ensuring that characters like <, >, and & are interpreted as text rather than HTML code. There are three types of entities: named, numeric, and hexadecimal, each serving to represent characters in different ways.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views14 pages

Lm7. Special Character Entities

Entities in HTML are used to display reserved characters and special symbols correctly in browsers. They are written as &code; and help prevent errors by ensuring that characters like <, >, and & are interpreted as text rather than HTML code. There are three types of entities: named, numeric, and hexadecimal, each serving to represent characters in different ways.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

TLE-ICT

CLASS
HTML
ENTITIES
ENTITIES
 Entities are used to display reserved characters or
special symbols in HTML.
 Entities ensure these characters are displayed
correctly in a browser instead of being
misinterpreted as part of the HTML code.
 Entities are written as &code; where code
represents the entity name or number.
WHY USE ENTITIES?
Reserved Characters:
Some characters, like <, >, and &, are used in HTML
tags. To display them as text, you need to use
entities.
Non-Keyboard Characters:
Some symbols, such as © or €, are not easily typed
on a keyboard, so their entities are used.
Prevent Code Errors:
Using entities avoids errors caused by browsers
interpreting special characters as HTML code.
TYPES OF ENTITIES
Named Entities
Use a descriptive name for the character.

Example: Result Description Name


< less than lt
> greater than gt
© copyright copy
Numeric Entities
Use a numeric code to represent the character.

Example: Result Description Dec Hex


₱ peso sign 8369 20B1
😉 winking face 128521 1F609
Hexadecimal Entities
Use a hexadecimal code with a #x prefix.

Example: Result Description Dec Hex


₱ peso sign 8369 20B1
😉 winking face 128521 1F609

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy