answersLogoWhite

0

Can you use body tag and form tag together in HTML?

Updated: 8/20/2019
User Avatar

Wiki User

12y ago

Best Answer

If you want to maintain W3C compliance, you can't use the FORM tag without the BODY tag. The FORM tag must be contained within the BODY tag. Like this

<html>

<head>

<title>Our Cool Form Page</title>

</head>

<body>

<form method="post" action="example.php">

<input type="submit" value="submit">

</form>

</body>

</html>

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you use body tag and form tag together in HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is Slash is used to create a closing tag?

Yes. &lt;FORM&gt; is the opening tag whereas &lt;/FORM&gt; is the closing tag. This &lt;/TAG&gt; to close tags is applicable for most tages. ex: &lt;HTML&gt; &lt;/HTML&gt; &lt;BODY&gt; &lt;/BODY&gt; etc...


What three tags create the body of the form in HTML?

A form can be created in HTML using the &lt;form&gt; tag. Inside form tag we can use elements like input, submit or reset.


What should be the last command in any HTML document?

The last command in any HTML document is a closing HTML tag. Just before it is the closing BODY tag. &lt;/BODY&gt; &lt;HTML&gt;


Which tag is used to define body part of HTML?

The &lt;body&gt; tag starts it and &lt;/body&gt; ends it.


Which HTML tags do you close out at the very end?

The very last tag should be the closing HTML tag. It would be done like this: &lt;/html&gt; Before that you would normally close the Body tag, like this: &lt;/body&gt;


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 is the code for case sensitive in HTML?

HTML in not case sensitive i.e. upper and lowercase does not matter. For example: &lt;body&gt; tag and &lt;BODY&gt; tag are the same.


What is body tag in HTML?

A body tag defines the content of the web page. It defines what goes into the body of the page.


What is tag in HTML?

when you are making a web page you make a HTML tag so when you convert it to a web browser it isn't just blank. it is a piece of the code that your browser decodes into the page you see. this is an HTML tag &lt;HTML&gt; and it tells the browser that this is an HTML page. for everything you see on a web page, there is a special HTML tag for it.


What is the effect of body tag in HTML?

The BODY tag in HTML defines the portion of the HTML document in which the actual content of the page will be. For instance, images, text, links, Flash and everything else that renders when the browser loads the page is defined within the BODY tag. Compare this to its sibling tag, HEAD, which contains metadata that describes the data within the BODY.


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 a tag List 10 HTML tag?

There are various tags in HTML that can be used. 10 of them are: p, a, br, head, body, html, title, script, link, style.