The style Attribute (deprecated)
The style attribute allows you to specify CSS rules within the element. For example:
<p style="font-family:arial; color:#FF0000;">Some text...</p>
As a general rule, however, it is best to avoid the use of this attribute. After all, one of the aims of XHTML was to remove stylistic markup from structural and semantic markup . This
attribute is marked as deprecated in XHTML 1.0 (which means it will be removed from future versions of XHTML). If you want to use CSS( Cascading Style Sheet - We will talk about this later) rules to govern how an element appears, it is better to use the class attribute to associate the element with a CSS rule either in the <style> element or a separate style sheet instead.
1 comments:
This is a wonderful blog
Post a Comment