--- title: HTML date: 2021-07-20 19:16:42 icon: icon-html background: bg-[#cc5534] tags: - web categories: - Programming intro: | This HTML quick reference cheat sheet lists the common HTML and HTML5 tags in readable layout. --- Getting started ------------ ### 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
This text is emphasized
Underline Text
Preformatted text
Source code
Pre-formatted TextCtrl
Text Block Quote``` ### Headings ```html
I Love QuickRef.ME
```I Love QuickRef.ME
HTML Tables -------------- ### Table Example {.row-span-2} ```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
--------------
### Unordered list
```html
|