HTML - [2] Background Colour and Page Title

Post new topic   Reply to topic

View previous topic View next topic Go down

HTML - [2] Background Colour and Page Title

Post  Robin on Mon Sep 01, 2008 9:51 pm

HyperText Markup Language
HTML

[Adding a background collor and a title.]

You can set the background collor by adding something to the <body> tag if you change the tag to <body bgcolor="??"> the page has some collor

?? = you can insert the colour you like here, as word or as code if you type in "Black" the background colour will be black but if you type in "#000000" the background collor will also be black. to keep it simple just use words; Black, Green, Yellow, Red, Pink, Blue and so on.

To add a title to ure page (the text you see in the top of ure web-browser) you should add a little code to the <head></head> tags but this time we dont insert it into it but between it.

the code you need is <title>My Website</title>

code you could have now:

Code:
<html>

<head>
<title>My Website</title>
</head>

<body bgcolor="green">
</body>

</html>

Robin
Moderator
Moderator

Number of posts: 11
Age: 18
Location: Holland
Registration date: 2008-08-31

View user profile

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum