Use JavaScript to Change Text

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

Using a Full URL File Path

Mountain 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.

CSS Template

CSS Layout Float

In this example, we have created a header, two columns/boxes and a footer. On smaller screens, the columns will stack on top of each other.

Resize the browser window to see the responsive effect (you will learn more about this in our next chapter - HTML Responsive.)



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.

Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.

Setting the Viewport

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

Computer Code

Some programming code:

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

I will display €

I will display €

I will display €