In the our previous article, we were talking about How to style your HTML font. But today we are going to teach you about "How to Customize HTML Background". If you haven't learned HTML from the previous article. The previous article : How to style your HTML font.
Let's continue our lesson! Here we go!
Background is a place that you can put your art and your creation in there. Background also has a function to make your website more attractive and more interesting. Beside it, background can describe your website characteristic and theme.
- HOW TO CHANGE THE BACKGROUND COLOR
To customize your background color, you can use this tag :
<body bgcolor="insert the color here"> ... </body>
1. First, make a the main HTML tag.
2. After that, add bgcolor="(insert the color that you want to add here)"
3. Let's see the difference. This is the example of original layout of HTML.
4. And this is the modified background that has been changed by <body bgcolor="blue"> ... </body>.
- HOW TO INSERT AN IMAGE AS YOUR WEBSITE BACKGROUND
To insert the image to be your website background, the tag that you need to write is :
WARNING !
- You should enter the extension of your image too! Sometimes if you don't write the extension, the image cannot be loaded. For example, if you have a picture that has a name "Background1" then the extension or the type of image is JPG, then you have to write it as"Background1.jpg".
- You should place the picture in the same place or the same folder.
Any object that you want to publish or post in your HTML website is need to be put into the same folder.
Okay, that's all that we've got today. Thank you for your visit. You may also continue your lesson in our next article about HTML! Please leave a comment if you have a problem to learn HTML from our website.
See you!
Learn HTML IV ( For Beginner ) - How to change the HTML Background with Image
4/
5
Oleh
DOWNLOAD YOUR GAME