In HTML
certain symbols are treated as special.For example -<i.e.less than symbol is
considered as special symbol because it is used as the beginning of the
tag.Hence we can not directly use certain symbols such as <,>,”and so on.To
print these symbols we what is called as reference.This reference always begins
with ampersand(&)sign.Such reference is called as entity reference.
Character Meaning Entity Reference
< less than <
> greater
than >
& ampersand &
" double quote "
' apostrophes '
Another type of entity reference that is used frequently is &nbps;that is non breaking space character.This entity reference is useful for defining the space between two string and informing browser for not forming the word wrapper between the strings.
No comments:
Post a Comment