+ 1
Code not working properly...want to add image in background using this platform...kindly suggest me possible solution...
<html> <head> <title> Basic html </title> </head> <body> <h1>Usman Zafar</h1> <h2>usman zafar</h2> <h3>usman zafar</h3> <h4>usman zafar</h4> <h5>usman zafar</h5> <h6>usman zafar</h6> <body align="center" background="pictures/abc.jpg"> </body> </html>
11 Answers
+ 2
[Tutorial] Upload content from your device to CodePlayground - The Dropbox way
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
+ 4
Use css it makes code look better,
body {
background-image: url("pictures/ABC.jpg");
Cant use body 3 times
<body background="hdhdhdh.jpg">
<h1>Hello world!</h1>
<h2> hello</h2>
</body>
+ 4
If you want to use an image for background, you must to show the browser which image to use. There are two ways for that:
1.Up load it into internet and put it's url in the body tag.
2. Put the image in the same folder with the html source code and put it's name in the body tag.
If you want use the image in play ground, use the first one!
+ 2
Ok you can't use body 3 times, follow how I wrote it
+ 2
Try this bro:
https://code.sololearn.com/WL30DC8GWu1J/?ref=app
The background url must be in the first openning <body> tag!
+ 1
Dear Mark it's assignment. code should be in html
+ 1
Finally got my objective achieved...
Thanks sir Gordon...
God bless u....
+ 1
Let's thank Mickel who coded the helpful tutorial đ
Sololearn Q&A is a true gold mine. With a right way of searching, you can dig out some good answers to previously asked question.
Search bar is here:
https://www.sololearn.com/post/10362/?ref=app
(Tips: Remember to switch filter option to "Most Popular" first)
0
Awesome thanks alot thong nguyen
0
If I have image in my mobile how can I set it as a background...
0
Sir Gordon me working on it will contact you if I found difficulty... anyhow thanks for your guidance