Pro Flash Beat
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 Beginner - HTML Backgrounds

Go down 
AuthorMessage
Revan
Admin
Revan


Posts : 22
Join date : 2008-06-18
Age : 30
Location : In your head messing with your thoughts!

Beginner - HTML Backgrounds Empty
PostSubject: Beginner - HTML Backgrounds   Beginner - HTML Backgrounds Icon_minitimeTue Jul 29, 2008 1:05 pm

Backgrounds

The <body> tag has two attributes where you can specify backgrounds. The background can be a color or an image.

Bgcolor

The bgcolor means background-color, it can be a hexadecimal number, an RGB value, or a color name:

Code:
<body bgcolor="#000000">
<body bgcolor="rgb(0,0,0)">
<body bgcolor="black">

The lines above all set the background-color to black. (using a mac program fireworks to look and the color code is a easy way to change it from black to other colors)

Background

If you choose to have a picture as a background, but it is smaller than the browser it will repeat itself until the browser is filled.

Code:
<body background="clouds.gif">
<body background="http://www.pro-flash-beat.darkbb.com/clouds.gif">

clowds.gif is just a example

The URL can be relative (as in the first line above) or absolute (as in the second line above).

Basic Notes - Useful Tips

The bgcolor and the text attributes in the <body> tag are deprecated in the latest versions of HTML.


Last edited by Revan on Wed Jul 30, 2008 11:25 am; edited 1 time in total (Reason for editing : Incomplete)
Back to top Go down
https://pro-flash-beat.darkbb.com/
 
Beginner - HTML Backgrounds
Back to top 
Page 1 of 1
 Similar topics
-
» Beginner - HTML Tables
» Beginner - Smith's HTML Introduction
» Complete noob lvl - How to put backgrounds
» Noobs - HTML Introduction

Permissions in this forum:You cannot reply to topics in this forum
Pro Flash Beat :: Scripting :: HTML-
Jump to: