CSS Id vs Class Tutorial | CSS Id Attribute
×

CSS Id

3917

How to create and ID in CSS: In CSS an ID selector is a name always start with a hash character ("#"). ID's are unique.

With a specific id are used to select one unique element!

Example:

<!DOCTYPE html>
<html>
<head>
<style>
#test {
background-color:#FF0000;
}
</style>
</head>
<body>

<p id="test"> Hello World. </p>
<p> Hello World. </p>

</body>
</html>



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments