Forbrukslån | Pikavippi Vertailu | Kredittkort lav Rente | Billig Strøm | Verisure Erfaringer | Billigste Forsikringsselskap | Mobilselskaper | Beste Varmepumpe
CSS

Css Class Selector Tutorial

CSS or any portion of the Web pages is one way to identify one or more factors specific class selectors. Multiple factors can be identified by the selectors in the same class, so it helps to reduce the amount of coding.

For example <p class = “mar”> 24/7 Support </ p> css code for

.mar {color: # C03;

font-size: 36px}

Class selectors HTML tags to indicate what word is used in the class after the = sign with the name of the class is written inside double quotes. For example <p class = “mar”>. Mar the class name. Style class seat to mark (.) Dot is used.

Practice Project

<html>
<head>
<title> Selectors</title>

<style>
body{background: #FFC}
.post{color:#066;
font-family:Tahoma;
text-align:justify;}

.mar{color: #C03;
font-size:36px}
</style>

</head>
<body >
<h1>www.tutohost.com</h1>

<p class=”post”>

We are bangladeshi Hostgator hosting provider. The world wide technical and support team is working for your best movement. </p>

<p class=”post”>

We are dedicated with client requrement. You can host your huge data of your company with our secured and hacking proof server. We are taking care of more than 1000 bangladeshi websites and their huge information.

</p>

<marquee>
<p class=”mar”> 24 / 7 Support</p>
</marquee>

</body>
</html>

Notepad to open a file type from the menu at the top of layer code by clicking on the Save as File name: index.html, Save as type: All files, save and open the index.html file with the Mozilla Firefox look like the image shown below.

Project Analysis

<P class = “post”> a paragraph with a class name has been set for the post.
<P class = “post”> with the name of a class to another post has been set for a paragraph.

.post {color: # 066;
font-family: Tahoma;
text-align: justify;}
The post has been set as the default style for the paragraphs in both classes.
<P class = “mar”> mar the name of a class has been set for a paragraph.
.mar {color: # C03;
font-size: 36px}
Class assigned to mar the paragraph style has been set.

Comments

comments

About the author

Toriqul Islam Tusher

বলার মত কিছু নাই!

Leave a Comment