- Forums
- HTML
- HTML Code For Putting A Picture As A Background Of The Page
this page will show you a way you can put a background picture of your website or webpage using css style in a HTML tag [721], Last Updated: Sat May 18, 2024
wallpaperama
Sun Sep 07, 2008
4 Comments
5011 Visits
if you want to learn how you can put a background picture on a webpage using html, i will give you a simple code how you can do it..
first we are going to use the <div> tag, then we are going to put a background image in it.
there many ways you can put a background image in your html code, but i think the most effective way is to use css
but first, we are going to do use this code:
<div style="background-image:url(http://www.wallpaperama.com/forums/post-images/20080907-69722-21.jpg); height:400px; width:530px; border: 4px solid #FF0000;">
and this is how it would come out
as you can see the background on this div is a picture of the jonas brothers
you can put any picture in the background you want as long as you know the full url you can put i n yout cod
https://www.wallpaperama.com/forums/html-code-for-putting-a-picture-as-a-background-t6337.html