Markup language and Hyper Text Markup Language (HTML)
Describes the structure and content of the webpage
Tags
The markup syntax that defines elements
Attributes
Additional info about an element
Programming Languages
Contains logic and instructions (Of code? Think python, Javascript)
Semantic HTML uses …
Uses elements that conveys meaning about the content. Elements are the building blocks of HTML
What does HTML5 improve?
Improves clarity
Accessibility
A moral obligation and legal requirement. Build an accessibility tree from the DOM
Web Content Accessibility Guidelines (WCAG)
Provides standards for inclusive web content
Document Object Model (DOM)
A programming interface for HTML documents. Not the HTML source code
Shadow DOM
Allows encapsulation of DOM subtrees
Style isolation
Styles outside don’t leak out and vice versa
Tree structure
DOM is a tree representation of a HTML document
Node relationship
Parent, child, and sibling relationships enable navigation
Node = Point in a tree
Rendering pipeline
Browers parse HTML to build the DOM during rendering
DevTools
Inspect and modify the DOM interactively in real-time
What is a Virtual DOM?
A JavaScript representation of the DOM used by frameworks like React