need a good HTML code for a Fixed background image, no repeat. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

need a good HTML code for a Fixed background image, no repeat.

ive been searching for a background image html code, all the ones i have tried do not work. Please no css or java script. Just HTML

12th May 2017, 9:23 PM
Felicia Ramos
Felicia Ramos - avatar
6 Answers
+ 13
<body style="background-image:url(' https://i.ytimg.com/vi/lklDJ5VRQao/maxresdefault.jpg'); background-attachment: fixed; background-repeat: no-repeat;"></body> Sorry, without CSS, all attributes are now deprecated, paste my snippet in your HTML or change the wallpaper inside the url() with your background image. ^^
12th May 2017, 9:29 PM
Maz
Maz - avatar
+ 4
styling for any general purposes is only possible by using CSS
12th May 2017, 9:29 PM
Welliton Malta
Welliton Malta - avatar
+ 3
you can't set background without css. lol
12th May 2017, 9:25 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
0
Thanks!
12th May 2017, 9:30 PM
Felicia Ramos
Felicia Ramos - avatar
0
Thank youu!
12th May 2017, 9:31 PM
Felicia Ramos
Felicia Ramos - avatar
0
Thanks Maz.
12th May 2017, 9:39 PM
Felicia Ramos
Felicia Ramos - avatar