{ in html characters code example

Example 1: html special characters

<!-- Answer to: "html special characters" -->

!
&excl;
[
&lsqb; &lbrack;
_
&lowbar;
`
&grave; &DiacriticalGrave;
|
&verbar; &vert; &VerticalLine;
}
&rcub; &rbrace;
¢
&cent;
<!-- There's many more at https://dev.w3.org/html5/html-author/charref -->

Example 2: . and # in html

<!DOCTYPE html>
<html>
<head>
<style>
.classname {
  background-color: green;
  color: white;
}
#idname {
  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>

Tags:

Misc Example