Computer Science, asked by skdodiya9295gmailcom, 1 year ago

write the syntax to change background image and colour in html

Answers

Answered by StormAngler
1
In the HTML page, insert the style tag. Here I am going to assume that you want to change the background for the entire page..

<style>
* {
// This is for the background colour
background: 'red'; // Using the colour name
background: '#ff0000'; // Using the hex code

// This is for the background image
background-image: url('path to the image');
}
</style>
Similar questions