This is a Heading

This is a paragraph.

This is a heading

This is a paragraph.

This is a paragraph.

This is a paragraph.

Person 1 Person 2 Person 3
Emil Tobias Linus
16 14 10

Table With 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

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

Smiley face The image will float to the right of the text.

Smiley face The image will float to the left of the text.

Example

Absolute URLs

W3C

Google

Relative URLs

HTML Images

CSS Tutorial

opens link in new tab

Centered Heading

Centered paragraph.

Page Title

My First Heading

My first paragraph.

Heading 1

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6
cat.png

This is a red paragraph.

HTML Links

HTML links are defined with the a tag:

This is a link

This paragraph contains a lot of lines in the source code, but the browser ignores it.


This paragraph contains a lot of spaces in the source code, but the browser ignores it.


The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in this paragraph will change.

   My Bonnie lies over the ocean.

   My Bonnie lies over the sea.

   My Bonnie lies over the ocean.
   
   Oh, bring back my Bonnie to me.

I am normal

I am red

I am blue

I am big

This is a heading

This is a paragraph.

This is a heading

This is a paragraph.

This is a heading

This is a paragraph.

This is a heading

This is a paragraph.

This text is bold

This text is italic

This is subscript and superscript

This is a paragraph.

Tomato

Orange

DodgerBlue

MediumSeaGreen

Gray

SlateBlue

Violet

LightGray

Chapter 4

Jump to Chapter 4 Jump to Chapter 4

Hello World

Hello World

Hello World

table, th, td { border: 1px solid black; border-collapse: collapse; }

Vertical Table Headers

The first column becomes table headers if you set the first table cell in each table row to a TH element:

Firstname Jill Eve
Lastname Smith Jackson
Age 50 94