HTML Classes

HTML Classes

It is used to specify a single or multiple class names for an HTML element.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>HTML Classes</title>
<style>
.subject {  
    background:#f8f8f8;  
    color:#888;  
    padding:5px;  
} 
</style>  
</head>
<body>
    <h1 class="subject">Html</h1>
    <p>Html stands for Hyper Text Markup Language.It is the standard markup language for creating web applications.</p>
    <h1 class="subject">Jquery</h1>
    <p>jQuery is a lightweight, "write less, do more", JavaScript library.</p>
 </body>
</html>