Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials Basic HTML
Your Ad Here

Basic HTML


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="/img_articles/1344/IMAGE URL">

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



Author's URL: Lindsay Coome
Thank you for voting.
Rate this Materials:
Bad 
1 2 3 4 5 Excellent
print this page subscribe to newsletter subscribe to rss

HTML is Hyper Text Markup Language that is used to make hypermedia and hypertext documents for the Web. More HTML and CSS: Most Popular Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

Add comments to "Basic HTML"

Only registered users can write comment

Reader's comments