Content
HTML + CSS + JavaScript self assessment
Important headers for SEO
Sources: siteground.com, searchenginejournal.com
- title
- meta
- h1
- alt text for images
- li
- links
- bold / strong
- canonical
3x3 without table or CSS
Just divs and spans
Box Model Gallery
Rows show which property changes; columns show 0px, 5px, 10px.
Property \ Value
0px
5px
10px
Margin
Content
Content
Padding
Content
Content
Content
Border
Content
Content
Content
CSS: Itemized List with 6 Font Sizes
Same sentence, each with inline font-size using a mix of absolute and relative units. Each item explains when to use that unit.
- The quick brown fox jumps over the lazy dog — px: precise control for tiny UI elements (e.g., 12px badge counter).
- The quick brown fox jumps over the lazy dog — pt: print-focused sizing (e.g., 14pt body text in print stylesheet).
- The quick brown fox jumps over the lazy dog — em: scales with parent; great inside components (e.g., button text 1.5em of card text).
- The quick brown fox jumps over the lazy dog — rem: scales with root; ideal for global headings that respect user zoom.
- The quick brown fox jumps over the lazy dog — %: small relative tweaks (e.g., subheading at 120% of body text).
- The quick brown fox jumps over the lazy dog — vw: responsive hero text (e.g., hero title sized by viewport width).
CSS: Creative Positioning (4 options)
Relative: offset without leaving flow (e.g., nudge an icon by 10px).
Absolute: pinned to the nearest positioned ancestor (e.g., a corner badge on a card).
Relative: Use for small, contextual nudges or to create a positioning context for absolute children.
Absolute: Use for overlays and corner pins within a card/container. The container should be positioned (e.g., the dashed stage).
Sticky: Great for in-page subheaders or CTA bars that should stick while the user scrolls through a section.
Fixed: Use for global UI that must always be visible (e.g., footer or a help button). This page’s footer is fixed to the bottom of the screen.