# Javascript Basics ## The Browser Behaviour Layer --- ### Review ## The Browser Triad --- ## HTML ### Content The markup language that we use to structure and give meaning to our web content, for example: - defining page elements (nav, headings, etc) - embedding media (images, videos, audio, etc). - managing connected files (`.css`, `.js`, `.png`, etc) --- ## CSS ### Presentation A language of style rules that we use to apply styling to our HTML content, such as - colour - typography - layout - animation (when used for presentation) --- ## Javascript ### Behaviour The official programming language of the browser. It does the things HTML and CSS can't, such as: - dynamically update content - control media such as video - animation of images, svgs, etc - math, if you're into that kind of thing --- ## Adding JS to HTML ### Recommendations for this course --- ### Option 1: Embedded Javascript Recommended for single-page behaviour. ```html
Hello world!
Hello world!
``` - `
Hello world!