index.html
<element>content</element>
Basic HTML page:
1 2 3 4 5 6 7 8 9 10 11 |
|
can have attributes <element attr=""></element>
heading: <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
<h1>
per page<p>
strong
em
<a>
1 |
|
<ol>
: ordered / numbered <ul>
: unordered / bullets 1 2 3 4 5 |
|
1 |
|
alt
(required)<div>
: generic block element<span>
: generic inline element<header>
: header<footer>
: footer<nav>
: menu<main>
: main content<section>
: section of contenthref
, src
attributeshttps://website.com/page.html
directory/page.html
1 2 3 4 |
|
property: value;
style
attribute1 |
|
1 2 3 4 5 6 7 8 |
|
#include
1 2 3 |
|
1 2 3 |
|
1 |
|
1 2 3 4 5 6 7 8 9 |
|
1 |
|
1 2 3 |
|
font-size
color
: text colorbackground-color
text-align
: left, center, right1 2 3 4 5 6 7 |
|
font-size
font-size
font-size
font-size
1 |
|
1 |
|
Include padding and border in box, make CSS much easier.
1 2 3 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
1 2 3 4 5 |
|
1 2 3 |
|
justify-content
(x axis)align-items
(y axis)flex-direction
order
: specifies the order of a flexible item (-2,-1,0,1,2)align-self
: "align-items" for a single itemflex-wrap
: when items doesn't fit into container, used with "align-content"flex-flow
: "flex-direction" + "flex-wrap"align-content
: spacing between linesgap
: row-gap column gaprow-gap
: spacing between rowscolumn-gap
: spacing between columns1 2 3 |
|