HTML Entity
Ref: codeproject.com/Articles/751805/Beginners-guide-to-HTML
freeformatter.com/html-entities.html
<Head>
, <head>
, <HEAD>
and <hEAd>
are all the same, likewise Class
, class
and CLASS
but the usual convention is to write your tags and attributes in lowercase letters.'
and "
are valid. In fact, HTML5 allows you to completely ignore quotes when writing attribute values that do not have spaces.
An article like this
one has be showing you different tags without the browser thinking they
are tags, right? If you have to write angle brackets or any other
character not on your key board in HTML, you'll have to use HTML entities or character entities. Below is a table of commonly used HTML entities.
Character
|
Entity name
|
Entity Number
|
<
|
<
|
< |
>
|
> |
> |
©
|
© |
© |
®
|
® |
® |
™
|
™ |
⊊ |
"
|
" |
" |
(space)
|
|
  |
&
|
& |
& |
Examples
© CodeProject 2014. is written
Microsoft® Visual Studio ™ is written
2 > 3 is written
In your code write
So, to write any of the characters in HTML code, you'd write the one in the entity name or entity number. Note, entity names are case sensitive, you have to type them exactly (they are usually in lower case though) and entity numbers have a © CodeProject 2014
or © Codeproject 2014
Microsoft® Visual Studio ™ is written
Microsoft ® Visual Studio ™
2 > 3 is written
2 > 3
In your code write
2 <1
is written In your code write 2 &lt; 1
#
following the ampersand (&) sign.
The
browser removes unnecessary space from your document content, you have
to use the HTML entity for non breaking space ( ) to preserve
spacing
For a complete list of HTML entity names and numbers, see Free Formatter Entities List
Ref: codeproject.com/Articles/751805/Beginners-guide-to-HTML
freeformatter.com/html-entities.html
What a wonderful blog you have written. I like it very much. It's very useful as well as easy to understand. Thanks for this amazing blog. Btw I am gamer and I have something interesting for you. You may Click Here
回复删除Hello,
回复删除Good Blog liked it very much. It is positive blog. Explain in simple and understanding language. Btw I am gamer and I have something interesting for you visit here
Hello!!
回复删除just i read out ur blog it's very ineresting nd as well as to easily understanding. i'm also creating a blog visit here http://fusionnerpdf.iwopop.com/