Example 4
Example of ID selector
by jvickyj
HTML
<!-- In this example I will show you how ID selector is used -->
<h1> What is ID Selection in HTML </h1>
<h2> The id selector is used to specify a style for a single, unique element.</h2>
<h3>The id selector uses the id attribute of the HTML element, and is defined with a "#".</h3>
<p id="yesme">This is Example 1 </p>
<p>This line is not affected with id selector </p>
CSS
/*This css will change the ID selector on the Html page*/
#yesme {
color:green;
text-align:center;
}