Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Why are the HTML tags <html> and <body> needed? Text seems to display just fine without either.?

Update:

Is there an example of something than doesn't work when <html> and <body> are missing?

3 Answers

Relevance
  • When creating WEB PAGES, each page must contain <html> at the beginning then <body> and...... The body must be closed with </body> and the page must be ended with </html>....... Not doing this will cause html tags to not be understood and content display will have no sensible order........

    Fonts works without using html and body because when you are doing the font thing on webpages that you are visiting (like forums, for instance), it's already pre-coded with html and body, which is why you are able to do so without the use of the html and body tags......

  • 4 years ago

    <body> is needed to tell the browser how to differentiate text for the title vs. the body.

    <html> is needed to tell the browser what format you're using, as opposed to, say, XML.

  • joe
    Lv 6
    4 years ago

    Then don't use them if you feel the are not needed!

Still have questions? Get your answers by asking now.