Computer Science, asked by 3feb, 1 year ago

How to add background image in html page. Please write a code don't copy paste.


Anonymous: Pls unblock me aditi

Answers

Answered by siddhartharao77
1
It's better to add a background image using CSS:


HTML:

<body background = "Lotus.jpeg">


CSS:

body
{
background-image:url('Lotus.jpeg');
background-repeat:no-repeat;
background-attachment:fixed;
}


Hope this helps!

3feb: Wrong
siddhartharao77: Then what is right?could you tell me?
Similar questions