answersLogoWhite

0

There is no HTML tag for a background as such. You put in backgrounds by using the attributes of certain tags, depending what you want to put a background on and how you want to display the background. You can also use styles to do it. You can have a colour or an image as a background. The bgcolor attribute is used in a lot of different tags to put background colours on things. So if you wanted the background colour of your page to be red, then you would have the Body tag with the bgcolor attribute like this:

If you wanted an image as the background to your page, you'd have:

Using styles you can do more complicated things with backgrounds. For example, you can use a style to put a background on a paragraph in different ways:

This paragraph will have your image as a background repeating horizontally.

Your paragraph text goes here

This paragraph will have your image as a background displaying only once.

Your paragraph text goes here

Those are just 2 ways, but there are lots more, and they can be applied not just to paragraphs but to other structures like the body or a table or whatever you want.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you put an image background on websites?

Here's the HTML tag: <body background="yourimage.gif"> or <body background="yourimage.jpg">


Which HTML tag would be apply the bgcolour attribute to change the background color of single table row?

The tr tag.


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">


What is the A HTML tag called?

The HTML tag is called the "anchor" tag.


What is the HTML code for putting background music?

There is no provision of background music yet. However you could play audio using the <audio> tag.


Put a picture in the background of a webpage using HTML?

Change the <body> tag to <body style="background-image: image.jpg">. Replace image.jpg with your image.


How do you add a form to HTML and keep your background?

You can show your form using <form> tag, Keep the background of the form transparent to keep the original one.


What HTML tag is used to mark the top of the page?

The first tag you use when developing an HTML document is the tag. The first tag you use for the main content of your page is the tag. is the tag that marks the top of an HTML page. The minimum required first like is , which starts the definition of the page content.


How do you put color on background for websites?

This is the HTML tag: <body bgcolor="green"> or you can use codes <body bgcolor="#00FF00">


What is used to meta tag in HTML?

html


The tag that appears after the HTML tag is?

<head>


What is the first tag in every HTML document?

The HTML document begins,and ends with the tag . The element defines the whole HTML document. The element has a start tag and an end tag The Start element Tags within the HTML tags begins the content to be displayed for the web page (end body tag) The basic Tags needed to start an HTML document (and must be ended) look like this: This is where the content goes