css class selector


 css class selector

1]  css class selector write (.) character.

2]  css class selector is a fundamental part of cascading style sheets target html elements    

       based on their class attribute.

Syntax :-

. class 

{

text-align : center;

color :pink;

}

CSS Class Selector

Example :-

<!DOCTYPE html>
<html>
<head>
    <title>css class select </title>
    <style>
    .web
    {
        text-align : center;
        color:yellowgreen;
    }
</style>
</head>
<body>
    <h2 class="web">
        hello https://webdesigningtheory.blogspot.com/ </h2>

        <h3>This is program of Css ID Selector</h3>
    </h2>
   
</body>
</html>

CSS Class Selector 

Output :-

css class selector output




Related Post :-

javascript Tutorial

e-commerce project for student

simple login form in html

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example