What is CSS and Why Cascading?
Alternatives to Separate Style Sheet (Inline CSS using style attribute)
A separate style sheet file is the preferred option for maintainability. However there are other ways of using CSS within a specific file. For example, an inline CSS can be used to apply a unique style to a single HTML element, using the style attribute.
<h1 style="color:blue;">Blue heading</h1>
<p style="color:red;">Red paragraph</p>
No comments:
Post a Comment