special characters in html code example
Example 1: html special char
< : <
> : >
Example 2: html entity at sign
&
@
Example 3: html special characters
<!-- Answer to: "html special characters" -->
!
!
[
[ [
_
_
`
` `
|
| | |
}
} }
¢
¢
<!-- There's many more at https:
Example 4: special characters
Special Characters
\n
New line
\r
Carriage return
\t
Tab
\v
Vertical tab
\f
Form feed
\xxx
Octal character xxx
\xhh
Hex character hh
Example 5: . and # in html
<!DOCTYPE html>
<html>
<head>
<style>
.classname {
background-color: green;
color: white;
}
background-color: pink;
color: white;
}
</style>
</head>
<body>
<div class="classname">I am green colour<div>
<div id="idname">I am pink colour</div>
</body>
</html>