CSS ID Selector
1] css id selector attribute is the unique identifier in an html document.
2] id selector use # character.
3] css id selector is used to apply style specific HTML element.
Syntax :-
#id
{
// css property
}
CSS id selector
Example:-
<!DOCTYPE html>
<html>
<head>
<title>css id selector</title>
<style>
#web
{
text-align :center;
color:brown;
}
</style>
</head>
<body>
<h2 id="web">
hello https://webdesigningtheory.blogspot.com/ </h2>
<h3>This is program of Css ID Selector</h3>
</h2>
</body>
</html>
CSS id selector
Output :-
Read More :-
CSS Text Properties
CSS Class Selector
css element selector
add background image html
html anchor tag
html paragraph tag
html comments tag
creating customer login
create contact us form
html table design
inline css