diff --git a/html.md b/html.md index 1ba24a3..7cb3106 100644 --- a/html.md +++ b/html.md @@ -5,11 +5,10 @@ icon: icon-html background: bg-yellow-600 tags: - web - - html categories: - Programming intro: | - This HTML quick reference cheat sheet lists the common HTML tags and their attributes in an easy-to-read format. + This HTML quick reference cheat sheet lists the common HTML and HTML5 tags in readable layout. --- @@ -110,7 +109,7 @@ See: [The Image Embed element](https://developer.mozilla.org/en-US/docs/Web/HTML
Preformatted text
Source code Deleted text -Marked/highlighted text +Highlighted text (HTML5) Inserted text Makes text superscripted Makes text subscripted @@ -146,6 +145,30 @@ You should only have one h1 on your page These are the tags used to divide your page up into sections + +### Inline Frame {.row-span-2} +```html {.wrap} + +``` +#### ↓ Preview + + + +See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) + + ### JavaScript in HTML ```html @@ -155,6 +178,7 @@ These are the tags used to divide your page up into sections ``` + #### External JavaScript ```html @@ -164,6 +188,7 @@ These are the tags used to divide your page up into sections ``` + ### CSS in HTML ```html @@ -183,26 +208,151 @@ These are the tags used to divide your page up into sections ``` -### Inline Frame + + +HTML5 Tags {.cols-3} +------------- + +### Document +```html + +
+ +
+
+

QuickRef.ME

+
+ + +``` + + +### Header Navigation +```html +
+ +
+``` + + +### HTML5 Tags {.row-span-4} + +| | | +|------------------------------------------------------------------------------------|----------------------------------------| +| [article](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article) | Content that’s independent | +| [aside](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside) | Secondary content | +| [audio](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio) | Embeds a sound, or an audio stream | +| [bdi](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi) | The Bidirectional Isolate element | +| [canvas](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas) | Draw graphics via JavaScript | +| [data](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data) | Machine readable content | +| [datalist](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist) | A set of pre-defined options | +| [details](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) | Additional information | +| [dialog](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) | A dialog box or sub-window | +| [embed](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed) | Embeds external application | +| [figcaption](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption) | A caption or legend for a figure | +| [figure](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure) | A figure illustrated | +| [footer](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer) | Footer or least important | +| [header](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header) | Masthead or important information | +| [main](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main) | The main content of the document | +| [mark](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark) | Text highlighted | +| [meter](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter) | A scalar value within a known range | +| [nav](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav) | A section of navigation links | +| [output](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output) | The result of a calculation | +| [picture](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture) | A container for multiple image sources | +| [progress](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress) | The completion progress of a task | +| [rp](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp) | Provides fall-back parenthesis | +| [rt](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt) | Defines the pronunciation of character | +| [ruby](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby) | Represents a ruby annotation | +| [section](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section) | A group in a series of related content | +| [source](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source) | Resources for the media elements | +| [summary](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary) | A summary for the \
element | +| [template](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template) | Defines the fragments of HTML | +| [time](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time) | A time or date | +| [track](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track) | Text tracks for the media elements | +| [video](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video) | Embeds video | +| [wbr](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr) | A line break opportunity | + + +### HTML5 Video ```html {.wrap} - + ``` #### ↓ Preview - + -See: [The Inline Frame element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) + +### HTML5 Audio +```html {.wrap} + +``` +#### ↓ Preview + + + + + +### HTML5 Ruby +```html {.wrap} + + 汉 (Han) + 字 (zi) + +``` +#### ↓ Preview + + 汉 (Han) + 字 (zi) + + + +### HTML5 kdi +```html + +``` +#### ↓ Preview + + + +### HTML5 progress +```html + +``` + + + +### HTML 5 mark +```html +

I Love QuickRef.ME

+``` +

I Love QuickRef.ME

HTML Tables {.cols-3} @@ -434,10 +584,10 @@ Radio buttons are used to let the user select exactly one ### Checkboxes ```html - - - - + + + + ``` #### ↓ Preview
@@ -478,28 +628,28 @@ A select box is a dropdown list of options ### Fieldset tags ```html
- Choose your favorite monster - + Your favorite monster +
- -
+ +
``` #### ↓ Preview
- Choose your favorite monster - -
- -
+ Your favorite monster + +
+ +
-### Datalist tags +### Datalist tags(HTML5) ```html @@ -599,32 +749,32 @@ Also see: [Attributes for the \ element](https://developer.mozilla.org/en | | | |-------------------------|--------------------------------------------------------------| +| `type="checkbox"` | | +| `type="radio"` | | +| `type="file"` | | +| `type="hidden"` | | +| `type="text"` | | +| `type="password"` | | +| `type="image"` | | +| `type="reset"` | | +| `type="button"` | Button | +| `type="submit"` | | + +#### New Input Types in HTML5 +| | | +|-------------------------|--------------------------------------------------------------| +| `type="color"` | | | `type="date"` | | | `type="time"` | | | `type="month"` | | | `type="datetime-local"` | | | `type="week"` | | - -| `type="checkbox"` | | -| `type="radio"` | | -| `type="color"` | | -| `type="file"` | | -| `type="hidden"` | | - -| `type="number"` | | -| `type="range"` | | - -| `type="text"` | | -| `type="search"` | | -| `type="password"` | | | `type="email"` | | | `type="tel"` | | | `type="url"` | | - -| `type="image"` | | -| `type="reset"` | | -| `type="button"` | Button | -| `type="submit"` | | +| `type="number"` | | +| `type="search"` | | +| `type="range"` | | ### Input CSS selectors