CSS syntax (case-insensitive) JavaScript syntax (case-sensitive)
Border border
Border-bottom BorderBottom
Border-bottom-color borderBottomColor
Border-bottom-style borderBottomStyle
Border-bottom-width borderBottomWidth
Border-color bordercolor
Border-left Borderleft
Border-left-color borderLeftColor
Border-left-style borderLeftStyle
Border-left-width borderLeftWidth
Border-right borderright
Border-right-color borderRightColor
Border-right-style borderRightStyle
Border-right-width borderRightWidth
Border-style BorderStyle
Border-top BorderTop
Border-top-color borderTopColor
Border-top-style borderTopStyle
Border-top-width borderTopWidth
Border-width BorderWidth
Clear Clear
Float Floatstyle
Margin margin
Margin-bottom MarginBottom
Margin-left marginleft
Margin-right marginright
Margin-top margintop
padding padding
Padding-bottom Paddingbottom
Padding-left paddingleft
Padding-right paddingright
Padding-top paddingtop
color and background labels and properties control
CSS Syntax (case-insensitive) JavaScript syntax (case-sensitive)
Background background
Background-attachment backgroundattachment
Background-color BackgroundColor
Background-image backgroundimage
Background-position backgroundposition
Background-repeat backgroundrepeat
Color color
style label and property control
CSS Syntax (case-insensitive) JavaScript syntax (case-sensitive)
Display display
List-style-type listStyleType
List-style-image listStyleImage
List-style-position liststyleposition
List-style ListStyle
White-space whitespace
Text style label and property control
CSS Syntax (case-insensitive) JavaScript syntax (case-sensitive)
Font font
Font-family fontFamily
Font-size fontsize
Font-style FontStyle
Font-variant fontvariant
Font-weight FontWeight
text label and attribute control
CSS Syntax (case-insensitive) JavaScript syntax (case-sensitive)
Letter-spacing letterspacing
Line-break LineBreak
Line-height lineheight
Text-align textAlign
Text-decoration textdecoration
Text-indent textindent
Text-justify textjustify
Text-transform Texttransform
Vertical-align verticalalign
use case Presentation
HTML code
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ XHTML1-TRANSITIONAL.DTD">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> write html</title> with CSS
<body>
<input type= "text" name= "name" >
</body>
JS Code
<script language= "javascript" >
Function Validate () {
if (document.all ("name"). Value = = "") {
document.all ("name"). style["bordercolor"]= "red";/This is the place
return;
}
}
</script>