HTML Tags: Code What It Does Options
HTML Tags: Code What It Does Options
Table
Code What it does Options
Caption <caption> hello </caption> allows you to display a
(comes after the table tag) caption center aligned on
top of the table
border <table style= “border-collapse: Collapse- The table and Collapse, separate
collapse” table cells’ borders are
joined and shared between
them.
Separate- the table and its
cells all have distinct
borders.
<table style= “border:solid Border style can be applied Solid, dotted, dashed,
4px”> to external gridlines double, groove
Or internal gridlines where Can pick thickness of
<td style= “border:solid 4px”> this attribute is added to the border here too
cells
padding <table style= “padding: 25px”> Adds cell padding, which is the space between the
Can be added to individual cells cell content and the border of the cell
in their <td> tag This assigns all padding sides to be 25px.
colors <h1 style= “color:#0000ff”> Sets the text in between <h1> and </h1> to the color
This is blue </h1> picked in the #RRGGBB format
absolute referencing wont work e.g <img src= “c:/My websites/My pictures/ turtle.png”>
because the other computer would need to have the same folder structures (and most
computers don’t have the same folder structures and will be different compared to your
computer)
In markup:
Uses the height and width attributes in the image tag
If only one of these attributes are specified, the aspect ratio is maintained.
If both the height and width were specified, the image is distorted
Uses large image files, slower to Reduces the file size of the image,
upload and delays the display of the the web page will be displayed faster
web page
Attributes:
- Controls
Allows the user to control the video
- Width and height
- Text between <video> and </video>
Text for when the video is not displayed because of an error
- Type
Tells the browser the type of the video to be shown
Lists
Ordered Also known as numbered lists
<ol> 1. apples
<li> apples </li> 2. bananas
<li> bananas </li>
</ol>
Made by Habiba 10E
unordered <ul>
<li> apples </li> • apples
<li> bananas </li> • bananas
</ul>