Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 781765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:16:58+00:00 2026-05-14T20:16:58+00:00

Are there any browser issues with always collapsing empty tags in html. So for

  • 0

Are there any browser issues with always collapsing empty tags in html.
So for example an empty head tag can be written like this

<head></head>

but is can also be written like this

<head/>

Will the second case cause issues in any scenerio?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T20:16:59+00:00Added an answer on May 14, 2026 at 8:16 pm

    You shouldn’t use minimized form for head in XHTML.

    http://www.w3.org/TR/xhtml1/#guidelines

    About empty elements:

    http://www.w3.org/TR/xhtml1/#C_3

    Given an empty instance of an element
    whose content model is not EMPTY (for
    example, an empty title or paragraph)
    do not use the minimized form (e.g.
    use <p> </p> and not <p />).

    In other words, paragraph should always be closed in XHTML, in HTML you could go with only opening tag. But if the element is supposed to have content it should be properly opened and closed.

    For example line break has EMPTY content model and can be written as <br /> (same goes for <hr />) but not <div />.

    Also see this SO question.

    Empty Elements (XHTML)

    Shorthand markup in HTML

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any cross-browser css sticky footer with W3C valid css and semantic X/HTML?
Is there any way to force a browser to refresh or empty it's cache,
Is there any way that I can detect browser type on routing and use
Is there a way in any browser to add/remove class names? For example, if
Is there any relation between doctype of an HTML document and browser rendering speed?
Debugging a PHP program, is there any add-on/plug-in for browser which I can view
Are there any browser issues with Oracle, specifically IE7, IE8 and Firefox? I.T. has
Are there any other similar packages that help identify and provide capabilities for browser
The silverlight app wont load in any browser. The outline is there when highlight
I am experiencing a lot of browser inconstancies with my HTML newsletter. Are there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.