+ 1
How to add a backgroundimage in html
2 odpowiedzi
+ 2
HTML5 prefers that you use CSS to accomplish this. For instance, you can use the style="" attribute to add an inline style to a tag, or call a style via class or id attributes. In any case, the css property required is: background-image: url("imageURLhere");
Other useful properties include: background-size, background-repeat, background-origin, background-position, and also an all encompassing background property.
Example: <body style="background-image: url("samplebg.jpg");">
+ 1
simply do this in your CSS file.
element{background-image:URL("address of image.extension");
}