Ad

css id selector


     
  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 :-


css id selector /output





Related Post :- 

program to print left pascal star pattern in php

css border property

background color program

No comments

Powered by Blogger.