HTML#
Hyber Text Markdown Language is a format that is used to represent information. Mostly it is popular for publishing information in internet, and all that we used to understand as “browser” actually a programs to display HTML in them.
Text format#
There is a set of HTML tags that allows you to format text on a page to look in the particular way or apply special properties to the specific sections of the text.
Description |
HTML Tag |
---|---|
Paragraph |
|
Bold |
|
Important bold |
|
Italic |
|
Important italic |
|
Strikethrough |
|
Deleted |
|
Underline |
|
Inline Code |
|
Code Block |
|
Blockquote |
|
Headings |
|
Line Break |
|
Horizontal Line |
|
Hyperlink |
|
Inserted to tocument |
|
Style section |
|
Check for the more accurate description in the corresponding page.
Lists#
The set of tags that are typically used to create lists in HTML pages is shows in the following table.
HTML Tag |
Description |
Example Usage |
---|---|---|
|
Unordered list (bulleted list) |
|
|
Ordered list (numbered list) |
|
|
List item (used inside |
|
|
Description list |
|
|
Term in a description list |
|
|
Description of the term |
|
Check more details in the corresponding page.
The following cell shows an example of the list in HTML.
%%HTML
<ul>
<li>this</li>
<li>is</li>
<li>list</li>
</ul>
- this
- is
- list
Tables#
The table below shows HTML tags that are used for building HTML tables.
HTML Tag |
Description |
Example Usage |
---|---|---|
|
Defines a table |
|
|
Defines a row in the table |
|
|
Defines a standard cell (table data) |
|
|
Defines a header cell |
|
|
Groups the header content in a table |
|
|
Groups the body content in a table |
|
|
Groups the footer content in a table |
|
|
Adds a caption or title for the table |
|
|
Defines column properties |
|
|
Groups columns to apply styles |
|
See the description with examples in the special page.
The following is a simple example of the table in HTML.
%%HTML
<table>
<tr>
<td>row1 cell1</td>
<td>row1 cell2</td>
</tr>
<tr>
<td>row2 cell1</td>
<td>row2 cell2</td>
</tr>
</table>
row1 cell1 | row1 cell2 |
row2 cell1 | row2 cell2 |
SVG#
Scalable Vector Graphics is a way to draw iamges in the HTML documents. The following table shows the most common tags used to create SVG graphics.
SVG Tag |
Description |
Example |
---|---|---|
|
Root container for SVG graphics |
|
|
Draws a circle |
|
|
Draws a rectangle |
|
|
Draws a straight line |
|
|
Draws an ellipse |
|
|
Draws a closed shape with multiple points |
|
|
Draws an open shape with multiple points |
|
|
Draws complex shapes with path data |
|
|
Adds text within the SVG |
|
For details on SVG graphics, see the mdn documentation page.
The example in the next cell shows SVG code to create a smile.
%%HTML
<svg width="200" height="200">
<circle cx="100" cy="100" r="80" fill="yellow" stroke="black" stroke-width="4" />
<circle cx="70" cy="80" r="10" fill="black" />
<circle cx="130" cy="80" r="10" fill="black" />
<path d="M60,130 Q100,170 140,130" stroke="black" stroke-width="5" fill="transparent" />
</svg>