multiple
attribute enables us to select several options at the same time.
size
attribute determines select tag height in optionscolspan
- 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.cellpadding
attribute of the tableth, td {
border: 1px solid black;
padding: 5px;
}
table#myTable {
border-collapse:collapse;
}
As default, borders are separated (with value: separate
), but when the property value is collapse
, then borders are collapsed into a single border.container {
box-sizing: border-box;
}
Another way to avoid border, padding PX calculations* {
margin: 0px;
padding: 0px;
}
.container {
width:1000px;
margin:0px auto;
}
<header>
and <footer>
elements can be used in <article>
. Example:
<article>
<header>
<h2>some header</h2>
</header>
<p> some paragraph</p>
<p> some other paragraph</p>
<footer>
written by Quentin Watt
</footer>
</article>
<main>
element in a document.
The <main>
element must NOT be a descendant of an <article>
, <aside>
, <footer>
, <header>
, or <nav>
element.