Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


HTML & CSS Web Design

Html Css > Code Examples

Style reuse across tags

Style reuse across tags <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: //www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http: //www.w3.org/1999/xhtml"xml: lang="en"lang="en"> <head> <title>Style Reuse Across Tags</title> <style type="text/css"> body, div, p, td, ol, ul, li, h1, h2, h3 { font-family: arial, sans-serif; color: pink; } p { font-size: 0.8em; line-height: 1.6em; } #styletext { padding: 8px; margin: 4px; background-color: green; } </style> </head> <body> <div id="styletext"> <p> The supreme happiness of life is the conviction<br> of being loved for yourself, or more correctly,<br> being loved in spite of yourself.<br> Victor Hugo </p> </div> </body> </html>