body { border-top : 20px double #FF9900; border-bottom: 20px double #FF9900; background : #eec; margin : 0cm 1cm 0cm 1cm; } h1 { border: 15px groove #8A2BE2; text-align: center; font-size :3cm; } h2{ border : 15px dotted green; color : red; } h3{ border : 10px dashed #33FF33; } p{ font-size : 15pt; } .happy{ border : solid ; background : yellow } .sad{ border : solid ; background : purple } .red { color : red} table,th,td{ border :solid thin} th { color : #F00; } th+th{ color: #F0F; } th+th+th{ color: orange; } th+th+th+th{ color: aqua; } th+th+th+th+th{ color: maroon; } th+th+th+th+th+th{ color: yellow; } th+th+th+th+th+th+th{ color: blue; } th:first-child{ color : red} th:last-child{ color : blue} td:first-child{ color : red } td:last-child{ color : blue }