answersLogoWhite

0

What is the background code for a HTML document?

Updated: 8/18/2019
User Avatar

Wiki User

11y ago

Best Answer

A background can be added on CSS. ex: #body {background: url(../images/bodybg.jpg) repeat-x;}
The HTML code for background color is

Note: The code must be put inside the body tag, that is between and of your HTML script and the values of color can be change accordingly. For example, if you want to put gray background color you simply change the value to "#727272" or "#000000" for black if you want.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the background code for a HTML document?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the code of backround in HTML?

Background can be easily added into the HTML code. in the <style> element you can add background-color="red".


Written remarks in your HTML or CSS document which will not be displayed in the browser?

Comments are not displayed by the browser, but they can help document your HTML source code.


What does mean HTML documents?

HTML stands for Hyper Text Markup Language. An HTML document contains HTML code that shows a Web browser how to display the document content.


How do you make a background on a webpage using HTML?

Making a background on a webpage in HTML is deprecated; you are advised to use CSS instead. However, if you must use HTML and only HTML, then place the "background" attribute in the body tag of the document in question like so: <body background="http://www.example.com/picture.jpg">


How do you embed video games on an HTML?

you need to find the games HTML code and copy and paste it into your HTML document.


How can you get the HTML code from a HTML document?

If you mean HTML website, just check the page source. If you mean a '.html' document, Right click and select Open With and select any text editor.


Is HTML the code used to display a document on the web?

yes


Where can one download a blank HTML document for free?

You can download a blank HTML document for free online from the W3Schools website. Once on the page, click on "HTML" in the left navigation menu and then copy and paste the code from the box into a text document and name it with the .html file extension to save the blank HTML document.


How do you upload an image to a HTML document?

To put an image in an HTML document, first upload the image to a web server somewhere. Then, copy the URL of the document. Finally, place the following code into the HTML document: <image src="PASTE URL HERE" />


How do you import a flash game in a HTML document?

You will need to embed the SWF file in your HTML using the following code:


How do you adjust the size of the background of your HTML design?

You use CSS (Cascading Stylesheets) to add backgrounds to block level elements inside an HTML design. If you want a design for the entire page, the CSS markup will use the "body" selector. The background-image rule is then applied. When you're finished, it might look something like this: body { background-image: url('images/bg.png'); background-repeat: repeat-x; } CSS isn't part of HTML, but a separate language contained in either an external file, or in code added along with the HTML in your HTML document.


What is the HTML code for fixed backgrounds?

<body background="xxx.jpg" behavior="fixed">