|
CodeAve.com - CSS - Basics | |||
|
|
|||
| Grouping | ||||
|
|
||||
<html> <head> <title>CodeAve.com/CSS - Text Case</title> <style type="text/css"> <!-- table, center, p, div { color: #FF0000 } /* Grouping tags within CSS allows you to assign the same attributes to many html tags. In this example any text within the <center>, <p>, <div> or <table> will be colored red and other text will use the default browser colors. All grouping are comma delimited */ --> </style> </head> <body bgcolor="#FFFFFF"> Regular document text not affected by style sheet <br> <br> <div>Text within <div> tags</div> <p>Text within <p> tags</p> <center>Text within <center> tags</center> <table align="center" border="1"> <tr><td>Text within <table> tags</td></tr> </table> </body> </html>
|
||||
|
|
||||