By the end you'll have a real webpage with colours, headings and styled text — built by you!
HTML tells the browser what to show — using tags wrapped in angle brackets
.html fileEvery HTML file follows this skeleton — save as index.html
CSS controls the look of your HTML — add a <style> block inside <head>
h1 selects the element, color: blue styles itcolor — text colourbackground-color — bg colourfont-size — text sizemargin — space outsidepadding — space insidetext-align — left / center / rightborder — outline around elementCreate aboutme.html and style it with your own colours
You'll build a page that reacts when you click — your first interactive web app!
String — text in quotesNumber — any numberBoolean — true or falseconst when the value never changesfunction — keyword to define itgreet — the name you give it(name) — input it receives{ } — the code that runsAdd a <script> tag at the bottom of your body to run JavaScript
document.getElementById("id") — find elementelement.innerHTML — change text insideelement.style.color — change CSS stylealert("msg") — show a popup=== exactly equal!== not equal>= greater or equal<= less or equalYou know HTML and basic CSS — now lay things out like a real web designer using Flexbox!
Every HTML element is a box with 4 layers — from inside out:
.card — class, reuse on many elements#title — id, use on one element onlyAdd display: flex to a container and its children line up automatically
Use Flexbox to display 3 profile cards side by side
flex-direction: column — what happens?You know variables, functions and the DOM. Now let's handle real data and build a to-do list app!
let i = 0 — start at index 0i < fruits.length — keep goingi++ — move to next item"click" — button clicked"input" — user types in a field"keydown" — key pressed"mouseover" — mouse hovers"submit" — form submittedCreate todo.html with this structure first
Arrays + loops + events all working together!
"keydown")