WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML Classes


Classing Block Elements

The HTML class ascribe makes it conceivable to characterize measure up to styles for "square with" <div> components:

Mahata Gandhi

Mahata Gandhi conceived in 2 October 1869 Porbander,India.He was the pioneer of the Indian autonomy development against British guideline.

He was father of the country called him and In south Africa who upheld for the common right of Indian.India called him Bapu.

George Washington

George Washington conceived in 22 February 1732.He was the primary President of the USA from 1789 to 1797.

He was the of Father of USA.

Example

<!DOCTYPE html>
<html>
<head>
<style>
div.leader {
    foundation color:black;
    color:white;
    margin:20px;
    padding:20px;
}
</style>
</head>
<body>

<div class="leader">
<h2>Mahata Gandhi</h2>
<p>Mahata Gandhi was conceived in 2 October 1869 Porbander,India.He was the pioneer of the Indian autonomy development against British principle. </p>
</div>

<div class="leader">
<h2>George Washington</h2>
<p>George Washington was conceived in 22 February 1732.He was the primary President of the USA from 1789 to 1797 </p>
</div>

Attempt it Yourself »

Classing Inline Elements

The HTML class property additionally makes it conceivable to characterize rise to styles for "rise to" <span> elements:

Example

<!DOCTYPE html>
<html>
<head>
<style>
span.this{font-size:110%;color:blue;}
</style>
</head>
<body>

<h1>Never <span class="this">be the</span> same Heading</h1>
<p>we are learn <span class="this">important</span> text.</p>

</body>
</html>
Attempt it Yourself »


Welookups is optimized for learning.Copy right 2018 - 2019 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.

welookups.com