Skip to content

2. Style Keyword

Yazid Slila edited this page Feb 1, 2022 · 1 revision

style is used to define elements properties

syntaxe

style element property value

we can use it as the following example :

style body margin 0px
style body padding 0px

we can also chain properties of the same element

style body margin 0px padding 0px

we can combine properties with same value as one property

style body margin,padding 0px

the result is the same for all examples above

body {
  padding: 0px;
  margin: 0px;
}
Clone this wiki locally