Training page :]


This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

This is a paragraph.

This is another paragraph.


This is my Tumblr link
image

this is a paragraph
with a line break


this is a text with 60px size


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


this paragraph has a
"powderblue" background and "grey" color font

this paragraph has a
"tomato" background

this paragraph has a
"rgba(10, 55, 73, 0.7)" background, "white" color font
and "courrier" font


this parahraph is centered

this parahraph is aligned left

this parahraph is aligned right


This text is bold
This text is important!
This text is italic
This text is emphasized
This is some smaller text.
this word is marked.
this word is deleted
this word is underlined

this is a subscripted text

This is a superscripted text


in this code, there is a hidden comment


border time :D

hehehehe

theehee :3

bordered text with 30px padding and 50px margin


The target attribute can have one of the following values:

_self - Default. Opens the document in the same window/tab as it was clicked
_blank - Opens the document in a new window or tab
_parent - Opens the document in the parent frame
_top - Opens the document in the full body of the window
This webbed site opens in a new page


howl

this image hosts a link to lukas' tumblr page


you can send an demail to someone@example.com by clicking here



Visit W3Schools!
Visit W3Schools!
Visit W3Schools!
Visit W3Schools!
Jump to heading 1
Jump to heading 1
Kiki's delivery service
Name Age Grade
Alec 17 Pr


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


Cell that spans two columns

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

Name Age
Jill Smith 43
Eve Jackson 57


An unordered HTML list


An ordered HTML list

  1. Coffee
  2. Tea
  3. Milk

A Description List


Coffee
- black hot drink
Milk
- white cold drink

Unordered List with Square Bullets

You may also use other types like : disc, circle, square or none.

A Nested List

Lists can be nested (list inside list):


  1. Coffee
  2. Tea
  3. Milk

type="1" The list items will be numbered with numbers (default)
type="A" The list items will be numbered with uppercase letters
type="a" The list items will be numbered with lowercase letters
type="I" The list items will be numbered with uppercase roman numbers
type="i" The list items will be numbered with lowercase roman numbers

The start attribute

By default, an ordered list will start counting from 1. Use the start attribute to start counting from a specified number:

  1. Coffee
  2. Tea
  3. Milk
  4. Sugar
  1. Coffee
  2. Tea
  3. Milk

This is an inline span Hello World element inside a paragraph.

The SPAN element is an inline element, and will not start on a new line and only takes up as much width as necessary.


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.

The span element

My mother has blue eyes and my father has dark green eyes.


Classes

London

London is the capital of England.

Paris

Paris is the capital of France.

Tokyo

Tokyo is the capital of Japan.

My Important Heading

This is some important text.

Using the span element to change a specific word in the text

Multiple Classes

Here, all three h2 elements belongs to the "city" class. In addition, London also belongs to the "main" class, which center-aligns the text.

London

Paris

Tokyo

Use of The class Attribute in JavaScript

Click the button to hide all elements with class name "city":

London

London is the capital of England.

Paris

Paris is the capital of France.

Tokyo

Tokyo is the capital of Japan.

My Header

The id attribute specifies a unique id for an HTML element. The value of the id attribute must be unique within the HTML document. The id attribute is used to point to a specific style declaration in a style sheet. It is also used by JavaScript to access and manipulate the element with the specific id. The syntax for id is: write a hash character (#), followed by an id name. Then, define the CSS properties within curly braces {}. In the following example we have an -h1- element that points to the id name "myHeader". This -h1- element will be styled according to the #myHeader style definition in the head section:


Using The id Attribute in JavaScript

JavaScript can access an element with a specified id by using the getElementById() method:

Hello World!


HTML Iframes

You can use the height and width attributes to specify the size of the iframe:

Remove the Iframe Border

To remove the default border of the iframe, use CSS:

Iframe - Target for a Link

Hayao Miyazaki

When the target attribute of a link matches the name of an iframe, the link will open in the iframe.


My First JavaScript

Use JavaScript to Change Text

This example writes "Hello JavaScript!" into an HTML element with id="ip":

My First JavaScript pt.2

JavaScript can change the content of an HTML element:

I've got something.


My First JavaScript pt.3

JavaScript can change the style of an HTML element.


My First JavaScript pt.4

Here, a JavaScript changes the value of the src (source) attribute of an image.


A browser without support for JavaScript will show the text written inside the noscript element.



HTML the < meta > element

All meta information goes insite the head

The HTML script element

Oh my!


 i write like this 
and i can do a line break
it nice and all
try
yt

This heading will not be affected

This paragraph will be red and center-aligned.

In this example only P elements with class="center" will be red and center-aligned:

This heading will not be affected

This paragraph will be red and center-aligned.

This paragraph will be red, center-aligned, and in a large font-size.


The border-style Property

This property specifies what kind of border to display:

A dotted border.

A dashed border.

A solid border.

A double border.

A groove border.

A ridge border.

An inset border.

An outset border.

No border.

A mixed border.