Example:
HTML
<!DOCTYPE HTML>
<html>
<head>
<style>
#myHeader {
color: red;
text-align: center;
}
</style>
</head>
<body>
<h1 id="myHeader">Horje is the best!</h1>
</body>
</html>
How to Use the id attribute to manipulate text with JavaScript | HTML Global Attributes |
How to Use the id attribute to link to an element with a specified id within a page | HTML Global Attributes |
How to Use the id attribute to style text with CSS | HTML Global Attributes |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Global Attributes |
Uploaded by: | Admin |