CSS Id

by Prasun Roy 02-Jul-16

0 1133


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>


Share:


Discount Coupons



Comments

    Waiting for your comments

Leave a Reply