CSS attribute comparison table in JavaScript (required for beginners)

Source: Internet
Author: User
Tags comparison table
CSS attribute comparison tables in JavaScript are essential for beginners of JavaScript.


Comparison between box labels and attributes
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
Comparison of color and background tags and attributes
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
Comparison between style labels and attributes
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 attribute comparison
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 tag and attribute comparison
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.