diff --git a/html.md b/html.md new file mode 100644 index 0000000..d3b8a3f --- /dev/null +++ b/html.md @@ -0,0 +1,735 @@ +--- +title: HTML +date: 2021-07-20 19:16:42 +icon: icon-html +background: bg-yellow-600 +tags: + - null +categories: + - Programming +intro: | + This HTML quick reference cheat sheet lists the common HTML tags and their attributes in an easy-to-read format. +--- + + +Getting started {.cols-3} +------------ + +### hello.html {.col-span-2 .row-span-2} + +```html + + +
+ + + +I'm from QuickRef.ME
+Share quick reference cheat sheet.
+``` +See: [The Paragraph element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p) + + + + +### HTML link + +```html +QuickRef +Email +Call +Msg +``` +--- + +| | | | +|---|----------|----------------------------------------------------| +| | `href` | The URL that the hyperlink points to | +| | `rel` | Relationship of the linked URL | +| | `target` | Link target location:
+```
+---
+
+| | | |
+|---|----------|-------------------------------------|
+| | `src` | Required, Image location _(URL \| Path)_ |
+| | `alt` | Describe of the image |
+| | `width` | Width of the image |
+| | `height` | Height of the image |
+| | `loading`| How the browser should load |
+{.left-text}
+
+See: [The Image Embed element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)
+
+
+
+### Text Formatting Tags
+
+```html
+Bold Text
+This text is important
+Italic Text
+Emphasis - This text is emphasized
+Underline Text
+Preformatted text+
Source code
+Pre-formatted Text+Ctrl +
Text Block Quote+``` + + +### Headings +```html +
| name | +age | +
| Roberta | +39 | +
| Oliver | +25 | +
| ](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th) | Defines a header cell in a table | +| [\ |
|---|
| ](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td) | Defines a cell in a table |
+| [\ | Attributes + +| Attribute | Description | +|-------------|-----------------------------------------------| +| `colspan` | Number of columns a cell should span | +| `headers` | One or more header cells a cell is related to | +| `rowspan` | Number of rows a cell should span | + +See: [td\#Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attributes) + + + +### \ | Attributes
+
+| Attribute | Description |
+|-------------|-----------------------------------------------|
+| `colspan` | Number of columns a cell should span |
+| `headers` | One or more header cells a cell is related to |
+| `rowspan` | Number of rows a cell should span |
+| `abbr` | Description of the cell's content |
+| [scope](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) | The header element relates to |
+
+See: [th\#Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attributes)
+
+
+
+HTML Lists {.cols-3}
+--------------
+
+
+### Unordered list
+```html
+
|