<! DOCTYPE HTML Public"-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD">"Content-type"Content="text/html; Charset=utf-8"><title>insert title Here</title><style> <!--the style of a category of labels--Div {background-color: #b0c4de;} p {Font-size:24px; text-align:left; color:red;} <!--set the style of the label based on the class property in the tag-. master {font-size:18px;color:red; text-Align:center;} . item {Border-style:red;} <!--set the LABEL element style according to the class property of a class of labels--p.item {color:black; font-size:14px;} Div.item {text-align:center;font-size: -; color:blue;width:100px;} <!--ID Selector style--#dvi {Color:black;font-size:24px; Width:200px;margin:0Auto;} #title {font-size:28px;text-Align:center;}</style>class="Master"> <div id="title">Welcome to Java Web! </div> <pclass="Item">CSS style test h2</p> <divclass="Item">CSS style test h2</div> <div id="DVI">css style Test div </div></div></body>
A page that understands CSS style selectors