Styling
font-family
color
text-align
font-size
background-color
Formatting
strong (importance)
em (emphasize)
b (attention)
del(strikeout)
sub (subscript)
Links
text-decoration:none;
Images
alt="AlternateName"
The alternate text should say "AlternateName".
Alternate text is useful when the image cannot be displayed, like when the page is read by a screen reader.

Tables
Row with two headers
The two table headers should have the value "Name" and "Age".
Name | Age |
---|---|
Eray Erdoğan | 22 |
caption
Add a table caption that says " Names and Points".First Name | Last Name | Points |
---|---|---|
Jill | Smith | 50 |
Using Colspan
Name | Age | |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
Summary
- Use the HTML < table> element to define a table
- Use the HTML < tr> element to define a table row
- Use the HTML < td> element to define a table data
- Use the HTML < th> element to define a table heading
- Use the HTML < caption> element to define a table caption
- Use the CSS border property to define a border
- Use the CSS border-collapse property to collapse cell borders
- Use the CSS padding property to add padding to cells
- Use the CSS text-align property to align cell text
- Use the CSS border-spacing property to set the spacing between cells
- Use the colspan attribute to make a cell span many columns
- Use the rowspan attribute to make a cell span many rows
- Use the id attribute to uniquely define one table
Lists
< ul >
- Coffee
< ol >
- Coffee
- Tea
- Milk
style="list-style-type:square;"
- Coffee
- Tea
- Milk
type="A"
- Coffee
- Tea
- Milk
type="i"
Use the correct HTML attribute to display i instead of numbers.
- Coffee
- Tea
- Milk
Description list (< dl >)
- Coffee
- - black hot drink
- Milk
- - white cold drink
Forms
input type="button" value="OK"
input type="radio" name="fav_language" (Radio button)
HTML form attributes (action="/action_page.php")
HTML form elements (< select name="cars"> < option value="">< /option> < /select>)
The first option must have the value "Volvo"
The second option must have the value "Ford".
HTML form elements (checkbox) (< input type="checkbox")
HTML form elements (date)(< input type="date" min="1990-01-01")
HTML form elements (e-mail)(< input type="email" placeholder="")
Block-Inline
Here are the inline elements in HTML:
code dfn em"i""img""input""kbd"
label map object output q samp
script select small span strong
sub sup textarea time var
Here are the block-level elements in HTML:
dd div dl dt fieldset figcaption
figure footer form h1- h6 header
hr li main nav noscript ol p
pre section table tfoot ul video>
Here are some examples with div and span
div
London
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
span
My mother has blue eyes and my father has dark green eyes.