![]() |
Definition and Usage
The
The Applies to
The
Browser Support
|
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
h1.intro { color: blue;
}
p.important { color: green;
}
</style>
</head>
<body>
<h1 class="intro">Header 1</h1>
<p>A paragraph.</p>
<p class="important">Note that this is an important paragraph. :)</p>
</body>
</html>
html class attribute |
How to Use of the class attribute in an HTML document | HTML Attribute |
Type
: |
Develop |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Attribute |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference