body, Head & titLe - HACK.ME
Trending
Monday, March 2, 2015

body, Head & titLe

<body>
You met the <body> element in the first example we created. Everything inside this element is shown inside the main browser window.

<head>
Before the <body> element you will often see a <head> element. This contains information about the page (rather than information that is shown within the main part of the browser window that is highlighted in blue on the opposite page). You will usually find a <title> element inside the <head> element.

<title>
The contents of the <title> element are either shown in the top of the browser, above where you usually type in the URL of the page you want to visit, or on the tab for that page (if your browser uses tabs to allow you to view multiple pages at the same time).




Anything written between the <title> tags will appear in the title bar (or tabs) at the top of the browser window, highlighted in orange here.

Anything written between the <body> tags will appear in the main browser window, highlighted in blue here.

You may know that HTML stands for HyperText Markup Language. The HyperText part refers to the fact that HTML allows you to create links that allow visitors to move from one 
page to another quickly and easily. A markup language allows you to annotate text, and these annotations provide additional meaning to the contents of a document. If you think of a web 
page, we add code around the original text we want to display and the browser then uses the code to display the page correctly. So the tags we add are the markup.






body, Head & titLe Reviewed by Vipula Dissanayake on 2:40:00 AM Rating: 5 <body> You met the <body> element in the first example we created. Everything inside this element is shown inside the main brow...

No comments: