Reserved Symbols

Reserved Symbols

Reserved Symbols
There are five(5) reserved keyboard symbols in HTML that we should use their entity equivalent in place of, if we wish for the document viewer to see the symbol rendered to the page while keeping clean valid html markup. These symbols have special purpose in HTML source code and are therefore reserved.
< &#60;
> &#62;
& &#38;
" &#34;
' &#39;

Less Than / Greater Than Symbols
HTML CODE EXAMPLE
&#60;h3&#62;Welcome to the show!&#60;/h3&#62;
<h3>Welcome to the show!</h3>

Ampersand Symbol
HTML CODE EXAMPLE
Blue &#38; Black are my favorite colors.
Blue & Black are my favorite colors.

Double Quote / Single Quote Symbols
HTML CODE EXAMPLE
Welcome to &#34;Joe&#39;s BBQ Shack&#34;
Welcome to "Joe's BBQ Shack"

0 Response to "Reserved Symbols"

Post a Comment