play3

My First JavaScript

Use JavaScript to Change Text

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

My First JavaScript

JavaScript can change the content of an HTML element:

This is a demonstration.

Page Title

The content of the body element is displayed in the browser window.

The content of the title element is displayed in the browser tab, in favorites and in search engine results.

Page Title

This is a david

This is a paragraph.

Cinque Terre

Resize the browser window

The Walk

The walk from Monterosso to Riomaggiore will take you approximately two hours, give or take an hour depending on the weather conditions and your physical shape.

What?

Cinque Terre comprises five villages: Monterosso, Vernazza, Corniglia, Manarola, and Riomaggiore.

Where?

On the northwest cost of the Italian Riviera, north of the city La Spezia.

Price?

The Walk is free!

This web page is a part of a demonstration of fluid web design made by w3schools.com. Resize the browser window to see the content respond to the resizing.

Setting the Viewport

This example does not really do anything, other than showing you how to add the viewport meta element.

Computer Code

Some code:

x = 5;
y = 6;
z = x + y;

The kbd Element

The kbd element represents user input:

Save the document by pressing Ctrl + S

The samp Element

The samp element represents output from a program or computing system:

If you input wrong value, the program will return Error!

The code Element

Programming code example:

x = 5; y = 6; z = x + y;

I will display €

I will display €

I will display €

hello i go to adamson high school