Vectorials
Flash Perfection
3D Lessons
Tutorialkit
Markup Tutorials
Learn PHP
network
adv banner
HTML and CSS  Home HTML and CSS Tutorials Basic HTML
rss

Basic HTML

Author: Lindsay Coome More by this author


Basic HTML stucture looks similar to this:

<html>
        <head>
        </head>

        <body>
        </body
</html>

Place your page's main content in between <body> and </body> (text, images, links, etc...) Place things like CSS, meta tags, and titles in between <head> and </head>. To change the background color of your page, replace <body> with:

<body bgcolor="red">

In other words, you are adding bgcolor="red". You can change red to any color you like (blue, silver, black, orange) or, you can use HEX codes to get a more specific color. For example, #000000 is black, and #FFFFFF is white. HEX codes consist of six characters, either letters or numbers. Here is a HEX code chart:

HEX code chart

To use an image as your background, copy the code below, and replace the <body> tag with it.

<body background="IMAGE URL">

Replace IMAGE URL with the url of the image you want as your background. To change the colour of your text, use the code below:

<font color="#000000"> text text text</font>

Replace #000000 with the HEX code or colour you want, and replace "text text text" with your text. To create an image, use the code below:

<img src="IMAGE URL">

Replace IMAGE URL with the url of the image you want to show up.



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Basic HTML"