HTML Link Colors

By default, a link will appear like this (in all browsers):

Link Colors

You can change the default colors, by using CSS:

HTML INFO

HTML Links

The target attribute specifies where to open the linked document.

The target attribute can have one of the following values:

Image Links

This image is a link. You can click on it.

Moon can be seen through a tree

We have added "border:0" to prevent IE9 (and earlier) from displaying a border around the image.

Link Titles

The title attribute specifies extra information about an element. The information is most often shown as a tooltip text when the mouse moves over the element.

HTML

HTML Bookmarks

First, create a bookmark with the id attribute

Hmm

Jump to Hmm

Just like I added a link to HTML Colors which is at the top.

Html Colors

You might think why every link is the same looking, duh we defiend it at the start.

Image Floating

Use the CSS float property to let the image float to the right or left of a text

Floating Images

Float the image to the right:

Batman ThinkingA paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image.

Float the image to the left:

CaTManA paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image.A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image. A paragraph with a floating image.

Image Maps

Surf through the image and click on the targeted links:

A CR2032 Battery

The name attribute of the map tag is associated with the img's usemap attribute and creates a relationship between the image and the map.

The map element contains a number of area tags, that define the clickable areas in the image-map

Background Image

You can specify background images
for any visible HTML element.
In this example, the background image
is specified for the paragraph.
By default, the background-image
will repeat itself in the direction(s)
where it is smaller than the element
where it is specified.(Try resizing the)
browser window to see how the
background image behaves.

The Picture Element

Flowers

Resize the browser to see different versions of the picture laoding at different viewport sizes.
The browser looks for the first source element where the media query matches the user's current viewport width, and fetches the image specified in the srcset attribute.

The img element is required as the last child tag of the picture declaration block. The img element is used to provide backward compatibility for browsers that do not support the picture element, or if none of the source tags matched.

Note: The picture element is not supported in IE13 and earlier or Safari 9.0 and earlier.

Basic HTML Table

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Note: The td elements are the data containers of the table. They can contain all sorts of HTML elements; texts, images, other tables, etc.

Table: Border

use the CSS border property to add a border to the table.

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Remember to define borders for both the table and the table cells.

Table: Collapsed Borders

If you want the borders to collapse into one border, add the CSS border-collapse property.

Firstname lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Table: Cell Padding

Cell padding specifies the space between the cell content and its borders.

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Try changing the padding to 5px

Table: Left-Align Headings

By default, table headings are bold and centered.

To left-align the table headings, use the CSS text-align property

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Table: Border Spaces

Border spacing specifies the space between the cells.

To set the border spacing for a table, use the CSS border-spacing property.

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Cells that spans two columns

To make a cell span more than one column, use the colspan attribute

Name Telephone
Bill Gates 55577854 73299563
Name Bill Gates
Telephone 73299563
34595620

Table: Caption

To add a caption to a table,use the caption tag.

Monthly Savings
Month Savings
January $100
February $50

Note: The caption tag must be inserted immediately after the table tag.


Table: Special Style

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

And adding more styles!(For you to understand :( )

Styling Tables

If you are see 4 tables, it's not a bug in your browser but a mistake which you need to solve :)

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

The link to move forward.