Introduction:
IDs allow you to assign a unique identifier to an HTML element. This allows you to define a style that can only be used by the element you assign the ID to.
Example:
IDs allow you to assign a unique identifier to an HTML element. This allows you to define a style that can only be used by the element you assign the ID to.
Example:
<head>
<style type="text/css">
div#css-section { border:1px dotted red; }
</style>
</head>
<body>
<div id="css-section">CSS IDs can be very useful</div>
</body>
0 comments :
Post a Comment