answersLogoWhite

0

What does the HTML tag do?

Updated: 8/10/2023
User Avatar

Wiki User

12y ago

Best Answer

A Div tag can be used for formatting a block of text, images, other divs or any other element of a website, even if these elements are included within some other tag. Anything inside a particular div will follow its CSS properties unless you don't specifically change it. Its like a box in which you can add any HTML element, a webpage usually have many divs to create a the layout. The placement and size of the div can be controlled by CSS. The content of the tag <div> always begins with a new line as it is a block based tag. There is also line folding after it.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

The HTML tag is an optional tag in HTML but required in XHTML. It delimits the HTML element which contains a HEAD element (which contains metadata about the page) and a BODY element (which contains the content to be displayed).

The only part of a web page that is not part of the HTML element is the DOCTYPE.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

The idea is to have a div in HTML and you can edit the div through css

;;;; IN THE HTML FILE ;;;;

<div class="topbox"> THIS IS A TESTER </div>

<NT/

<div id="bottombox"> Another Tester </div>

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;; IN THE CSS FILE ;;;;;

.topbox{

background: url("someimage.png");

height:100px;

width: 50px;

}

#bottombox{

background-color: red;

color: #0000FF;

height: 200px;

width: 500px;

}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

class = .

id = #

from that little code there will be two boxes the top one will have a background of a image will be 100px in height and 50px in width

the second box will have a red background blue writing and height of 200px and width of 500px

hopefally this is enough information for you

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

The <div> tag is mainly used to define a division in an HTML document.

When a Div tag is defined, it creates a block where you can insert text, images or any other HTML element inside the div tag.

Here is an example :

<div style="color:#00FF00">

<h3>This is a header</h3>

<p>This is a paragraph.</p>

</div>

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

HTML Div tag and CSS styling technology help web designers to create sectional blocks for example header, content box, sidebar and footer without HTML5 elements. Not only these, div element with CSS coding, web designer can define any height and width Non HTML block element.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Tags in HTML determine the browser what to do and what to show. It is the remote control for web designers and an instruction code for system. Tags determine the browser what should be the appearance of the webpage on different elements and conditions.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The div tag in HTML is a shortening of division. It is used for that very purpose as a generic block level division.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

DIV tags are used only in HTML format documents, the "div" tag defines a division or a section in a HTML document, or they are used to group block-elements to format them with CSS.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

The structure of a webpage is composed of tags. Tags are markers that tell your web browser how to present your HTML contents.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does the HTML tag do?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the A HTML tag called?

The HTML tag is called the "anchor" tag.


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.


What is used to meta tag in HTML?

html


The tag that appears after the HTML tag is?

&lt;head&gt;


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


Which tag tells the Web browser that the document file contains HTML?

The &lt;html&gt; tag at the top and the bottom tells the browsers. It is defined as &lt;html&gt; and &lt;/html&gt; at bottom.


What is the full form of BR in HTML?

The correct HTML form for BR is . BR is a tag to force a line break. It was introduced as a single tag, with no companion tag. The and tags work with older HTML, but for HTML 5, you need to have an ending tag for each tag. You can create your own ending tag by adding forward slash within the single tag: .


What does I mean in html?

The I tag is the italics tag: This is in &lt;i&gt;italics&lt;/i&gt;.


What are container tag and singular tag in HTML?

Head


What is norelley tag in META Tag?

There is no such tag. I doesn't do anything.


What is the correct format for an HTML tag for footnotes?

There isn't really an HTML tag designated specifically for footnotes.


What is the meaning of HTML tag?

HTML as the name suggests is a markup language. Each tag represents a function in it.