AsegGasiaBlog

CSS Part 5


ID Selector
The id selector uses the id
attribute of an H TML element to
select a specific element.
An id should be unique within a
page, so the id selector is used if
you want to select a single,
unique element.
To select an element with a
specific id, write a hash
character, followed by the id of
the element.
The style rule below will be
applied to the HTML element
with id= "para1 ":
Example
#para1{
text-align: center;
Color: red;

Popular Posts