+ 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>

21st Feb 2019, 4:55 AM
Usman Zafar
Usman Zafar - avatar
11 Answers
+ 2
[Tutorial] Upload content from your device to CodePlayground - The Dropbox way https://code.sololearn.com/WW6t4B73kJVz/?ref=app
21st Feb 2019, 5:53 AM
Gordon
Gordon - avatar
+ 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>
21st Feb 2019, 5:36 AM
Markpeach96
Markpeach96 - avatar
+ 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!
21st Feb 2019, 5:57 AM
Thống Nguyễn
Thống Nguyễn - avatar
+ 2
Ok you can't use body 3 times, follow how I wrote it
21st Feb 2019, 5:43 AM
Markpeach96
Markpeach96 - avatar
+ 2
Try this bro: https://code.sololearn.com/WL30DC8GWu1J/?ref=app The background url must be in the first openning <body> tag!
21st Feb 2019, 5:45 AM
Thống Nguyễn
Thống Nguyễn - avatar
+ 1
Dear Mark it's assignment. code should be in html
21st Feb 2019, 5:39 AM
Usman Zafar
Usman Zafar - avatar
+ 1
Finally got my objective achieved... Thanks sir Gordon... God bless u....
21st Feb 2019, 8:54 AM
Usman Zafar
Usman Zafar - avatar
+ 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)
21st Feb 2019, 8:59 AM
Gordon
Gordon - avatar
0
Awesome thanks alot thong nguyen
21st Feb 2019, 5:48 AM
Usman Zafar
Usman Zafar - avatar
0
If I have image in my mobile how can I set it as a background...
21st Feb 2019, 5:50 AM
Usman Zafar
Usman Zafar - avatar
0
Sir Gordon me working on it will contact you if I found difficulty... anyhow thanks for your guidance
21st Feb 2019, 5:56 AM
Usman Zafar
Usman Zafar - avatar