diff --git a/HTML-Notes.md b/HTML-Notes.md index f6b6418..a60387c 100644 --- a/HTML-Notes.md +++ b/HTML-Notes.md @@ -1 +1,112 @@ # HTML Notes + +## Core +```html + + +``` + +If `DOCTYPE` is omitted, the page is rendered in Quirks mode, using non-standard layout rules and emulating older browsers. Compared to Standards mode which uses the HTML Living Standard. + +`` is optional but almost always included. + +[W3C HTML Validator](https://validator.w3.org/) + +## Basic Elements + +### Sections and Headings + +A section is a collection of related content created with a `
` elements. A heading provides a title for _each_ section. There are six levels of headers/sections. Use headings strictly with the hierarchy of the document, not to achieve title sizes. Each `
` should have an associated `` header. + +### Text Formatting + +| Element | HTML Example | Semantics | +| ------- | ------------ | --------- | +em | `emphasis` | Emphasized text +cite | `cite` | Title of a work +strong | `strong` | Important text +mark | `mark` | Marked or highlighted text +var | `variable` | Definition of a variable in a computer program +kbd | `keyboard` | Keyboard input +code | `code` | Computer code +samp | `sample` | Sample output from a computer +b | `bold` | Bold text +i | `italic` | Text of an alternate voice or word from another language +u | `underline` | Text that is rendered differently from normal text + +## Comments + +Cannot be nested. + +## Lists + +### Unordered + +```html +