What are the attributes of body tag Explain with examples?

Attribute Description
background Image to be used a background
bgcolor Background color
link Color of text for unvisited hyperlinks
onafterprint Function to call user has printed document

What is body tag explain its attributes with examples?

HTML <body> tag defines the main content of an HTML document which displays on the browser. It can contain text content, paragraphs, headings, images, tables, links, videos, etc.

Tag specific Attributes.

Attribute Value Description
vlink color It determines the color of the visited link. (Not supported in HTML5)

What are body attributes?

Attributes: There are many attributes in the <body> tag which are depreciated from HTML5 are listed below: background: It contains the URL of the background image. It is used to set the background image. bgcolor: It is used to specify the background color of an image.

What are the various margin attributes of the body tag?

The following attributes of the BODY element sets the margins of a document.

<body topmargin=”” bottommargin=”” leftmargin=”” rightmargin=”” marginheight=”” marginwidth=””>

IT IS INTERESTING:  How do you align tags in HTML?
Attribute Value Explanation
topmargin=” “ pixels top margin

Which of these are all table tags?

<table>, <tr>,<td> are all table tags.

What is the importance of background attribute of body tag?

HTML | <body> background Attribute

The HTML <body> background Attribute is used to specify the background-image for the document. Attribute Values: It contains the value i.e URL Which specify the address of the background Image.

Which attribute is not valid for body?

Answer: alink. The default color that all a elements contained by this element will take when the mouse is over them. This attribute has become obsolete in HTML 5 because of its presentational nature and, therefore, its use is no longer valid.

The vlink attribute specifies the color of visited links in a document.

What does P mean in HTML?

The HTML <p> element represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.

What is bottom margin?

The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.

What is top margin?

The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.

What do you understand by tags How many types of tags are there?

A tag is said to be a paired tag if the text is placed between a tag and its companion tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as Closing Tag. Note: Here <i> is called opening tag. and </i> is called closing tag.

IT IS INTERESTING:  Your question: What is xhtml How does xhtml differ from HTML quizlet?

Which HTML tag is used to define a table?

HTML Table Tags

Tag Description
<table> Defines a table
<th> Defines a header cell in a table
<tr> Defines a row in a table
<td> Defines a cell in a table

Which attributes are used to give border to a table?

The HTML <table> border Attribute is used to specify the border of a table. It sets the border around the table cells. Attribute Values: 1: It sets the border around the table cells.

What table means?

A table is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis. Tables appear in print media, handwritten notes, computer software, architectural ornamentation, traffic signs, and many other places.

HTML5 Robot