How can we use a picture as a background instead of a color? Is something like that only available in CSS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we use a picture as a background instead of a color? Is something like that only available in CSS?

8th Oct 2016, 12:48 PM
Ryšard Gulbinovič
Ryšard Gulbinovič - avatar
4 Answers
+ 2
u can also directly set the image without using curly braces or the CSS syntax <body background="src">
23rd Oct 2016, 11:00 AM
Hemant Rana
Hemant Rana - avatar
+ 1
background="src" src---path/source of the image no, it is also available for HTML file also
23rd Oct 2016, 5:16 AM
Hemant Rana
Hemant Rana - avatar
+ 1
yes it is CSS property but u can do this in Ur HTML code use this in head section <head> <style> body { background-image: url("link of images"); } </style> </head> ...
23rd Oct 2016, 7:29 AM
Ankita Srivastava
Ankita Srivastava - avatar
0
Thank you for the answers :)
23rd Oct 2016, 7:59 AM
Ryšard Gulbinovič
Ryšard Gulbinovič - avatar