|
4 | 4 | - [Basic Tags of HTML](#basic-tags-of-html)
|
5 | 5 | - [Tags to Structure Document](#tags-to-structure-document)
|
6 | 6 | - [Semantic Elements](#semantic-elements)
|
| 7 | + - [Formatting](#formatting) |
7 | 8 | - [Links](#links)
|
8 | 9 | - [Images](#images)
|
9 | 10 | - [Lists](#lists)
|
|
16 | 17 |
|
17 | 18 | ## Basic Tags of HTML
|
18 | 19 |
|
| 20 | +> Tags are like keywords which defines that how web browser will format and display the content. |
| 21 | +
|
19 | 22 | | Command | Description |
|
20 | 23 | | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
21 | 24 | | `<html>...</html>` | Tag can be thought of as a parent tag for every other tag used in the page. |
|
|
41 | 44 | | `<hr/>` | In addition to switching to the next line, this tag also drawsa horizontal bar to indicate the end of the section. |
|
42 | 45 | | `<strike>...</strike>` | Another old tag, this is used to draw a line atthe center of the text, so as to make it appearunimportant or no longer useful. |
|
43 | 46 | | `<cite>...</cite>` | Tag for citing author of a quote. |
|
44 |
| -| `<del>...</del>` | Pre-formatted, ‘monospace’ text laid out with whitespace inside the element intact. | |
45 |
| -| `<ins> … </ins>` | Denotes text that has been inserted into the webpage. | |
46 |
| -| `<blockquote> … </blockquote>` | Quotes often go into this tag. Is used in tandem with the <cite> tag. | |
| 47 | +| `<blockquote> … </blockquote>` | Quotes often go into this tag. Is used in tandem with the `<cite>`tag. | |
47 | 48 | | `<q> … </q>` | Similar to the above tag, but for shorter quotes. |
|
48 | 49 | | `<abbr> … </abbr>` | Denotes abbreviations, along with the full forms. |
|
49 | 50 | | `<address> … </address>` | Tag for specifying author’s contact details. |
|
50 | 51 | | `<dfn> … </dfn>` | Tag dedicated for definitions. |
|
51 | 52 | | `<code> … </code>` | This is used to display code snippets within a paragraph. |
|
52 |
| -| `<sub> … </sub>` | Used for writing a subscript (smaller font just below the mid-point of normal font). | |
53 |
| -| `<sup> … </sup>` | Similar to the above tag, but for superscripting. | |
54 |
| -| `<small> … </small>` | Reduces text size. In HTML5, it often refers to redundant or invalid information. | |
55 |
| -| `<strong> … </strong>` | This element indicates that its contents have strong importance or urgency. Browsers usualy render the contents in bold type. | |
56 |
| -| `<i> … </i>` | Defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic. | |
57 | 53 | | `<bdo dir="rtl/ltr"> … </bdo>` | Overrides the current directionality of text, so that the text within is rendered in a different direction. |
|
58 |
| -| `<em> … </em>` | This tag is used to define emphasized text. The content inside is typically displayed in italic. | |
59 |
| - |
60 | 54 |
|
61 | 55 | **[🔼Back to Top](#table-of-contents)**
|
62 | 56 |
|
63 | 57 | ## Semantic Elements
|
64 | 58 |
|
| 59 | +> Semantic element clearly describes its meaning to both the browser and the developer. |
| 60 | +
|
65 | 61 | | Command | Description |
|
66 | 62 | | -------------------------------- | ------------------------------------------------------------------------------------------- |
|
67 | 63 | | `<article> ... </article>` | Defines independent, self-contained content |
|
|
72 | 68 | | `<footer> ... </footer>` | Defines a footer for a document or section |
|
73 | 69 | | `<header> ... </header>` | Specifies a header for a document or section |
|
74 | 70 | | `<main> ... </main>` | Specifies the main content of a document |
|
75 |
| -| `<mark> ... </mark>` | Defines marked/highlighted text | |
76 | 71 | | `<nav> ... </nav>` | Defines navigation links |
|
77 | 72 | | `<section> ... </section>` | Defines a section in a document |
|
78 | 73 | | `<summary> ... </summary>` | Defines a visible heading for a `<details>` element |
|
79 | 74 | | `<time> ... </time>` | Defines a date/time |
|
80 | 75 | | `<pre> ... </pre>` | Preserve both spaces and linebreaks |
|
81 | 76 |
|
| 77 | +**[🔼Back to Top](#table-of-contents)** |
| 78 | + |
| 79 | +## Formatting |
| 80 | + |
| 81 | +> Formatting elements were designed to display special types of text: |
| 82 | +
|
| 83 | +| Command | Description | |
| 84 | +| ------------------------ | ---------------------------------------------------- | |
| 85 | +| `<b> ... </b>` | Defines bold text | |
| 86 | +| `<em> ... </em>` | Defines emphasized text | |
| 87 | +| `<i> ... </i>` | Defines a part of text in an alternate voice or mood | |
| 88 | +| `<small> ... </small>` | Defines smaller text | |
| 89 | +| `<strong> ... </strong>` | Defines important text | |
| 90 | +| `<sub> ... </sub>` | Defines subscripted text | |
| 91 | +| `<sup> ... </sup>` | Defines superscripted text | |
| 92 | +| `<ins> ... </i>` | Defines inserted text | |
| 93 | +| `<del> ... </del>` | Defines deleted text | |
| 94 | +| `<mark> ... </mark>` | Defines marked/highlighted text | |
82 | 95 |
|
83 | 96 | **[🔼Back to Top](#table-of-contents)**
|
84 | 97 |
|
85 | 98 | ## Links
|
86 | 99 |
|
| 100 | +> Links allow users to click their way from page to page. |
| 101 | +
|
| 102 | + |
87 | 103 | | Command | Description |
|
88 | 104 | | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
89 | 105 | | `<a href=””> … </a>` | Anchor tag. Primarily used for including hyperlinks. |
|
|
96 | 112 |
|
97 | 113 | ## Images
|
98 | 114 |
|
| 115 | +> Images can improve the design and the appearance of a web page. |
| 116 | +
|
99 | 117 | | Command | Description |
|
100 | 118 | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
101 | 119 | | `<img />` | A tag to display images in the webpage. |
|
|
115 | 133 |
|
116 | 134 | ## Lists
|
117 | 135 |
|
| 136 | +> Lists allow web developers to group a set of related items in lists. |
| 137 | +
|
118 | 138 | | Command | Description |
|
119 | 139 | | -------------- | ----------------------------------------------------------- |
|
120 | 140 | | `<ol> … </ol>` | Tag for ordered or numbered list of items. |
|
|
128 | 148 |
|
129 | 149 | ## Forms
|
130 | 150 |
|
| 151 | +> Form is used to collect user input. The user input is most often sent to a server for processing. |
| 152 | +
|
131 | 153 | | Command | Description |
|
132 | 154 | | ------------------ | -------------------------------------------------------------------------------- |
|
133 | 155 | | `<form> … </form>` | The parent tag for an HTML form. |
|
|
138 | 160 |
|
139 | 161 | ## Tables
|
140 | 162 |
|
| 163 | +> Tables allow web developers to arrange data into rows and columns. |
| 164 | +
|
141 | 165 | | Command | Description |
|
142 | 166 | | -------------------------- | ------------------------------------------------------------------ |
|
143 | 167 | | `<table> … </table>` | Marks a table in a webpage. |
|
|
0 commit comments