colspan
- the colspan attribute defines the number of columns a cell should span.
rowspan
- the rowspan attribute specifies the number of rows a cell should span.multiple
attribute enables us to select several options at the same time.
size
attribute determines select tag height in optionsradio
label or checkbox
label makes the object checked, but clicking on input[type=text]
label makes it active (gives it focus)p
element will be all uppercase and underlinedp {
text-decoration: underline;
text-transform: uppercase;
}
label
element to block level element using the code below.
So they will take the full width of the container.my-form label {
display: block;
}
static
)first-child
to select only the first child element:.my-list li:first-child {
background-color: red;
}
last-child
is used to select the last member from the list:my-list li:last-child {
background-color: blue;
}
nth-child(5)
is used to select nth
element. In the example we select 5th element.my-list li:nth-child(5) {
background-color: yellow;
}
We can also use nth-child(even)
to select even members from the list.my-list li:nth-child(even) {
background-color: grey;
}
<span>
).
Any height and width properties will have no effect