## Lecture 1 (13:00) - HTML5 and Layout - XHTML (2000) succeeded HTML4, allowing XML integration such as SVG, MathML and CML. ### HTML5 - Flexible parsing and compatibility - Moved towards platform combining HTML5, CSS and JS - Improved semantic elements - New input attributes ex. date, time, email, url - Global attributes ex. id, tabindex, style ### Doctypes ```html ``` ```html ``` ### Comments ```html ``` ### ID Attribute - Global attribute. - Must be unique between elements. - Must start with a letter or underscore. - Can be used by CSS or JS to identify elements. ### Class Attribute - Any HTML element can also carry a class attribute. - Identifies collections of elements to manipulate as a group. - Element can have multiple classes, separated with spaces. - Class name should describe the class it belongs to. ### Block Elements - Some elements will always appear to start in new lines. - Examples include `

`, `

`, `