'class' Example : class « HTML Attributes Reference « HTML CSS Reference






'class' Example

    
<html>
<head>
<style>.myclass { font-family:times new roman; 
                  font-weight:bold; 
                  font-size:16px;
                  color:red; } 
</style>
</head>
<body>
<p class="myclass">style in myclass</p>
</body>
</html>
    
      
      








Related examples in the same category

1.'class' Syntax and Note
2.class is applied to