HTML - [2] Background Colour and Page Title
Programming Stuff :: HTML :: HTML/XHTML
Page 1 of 1 • Share •
HTML - [2] Background Colour and Page Title
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:
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

- Number of posts: 11
Age: 18
Location: Holland
Registration date: 2008-08-31
Permissions of this forum:
You cannot reply to topics in this forum





