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

  • SEARCH
  • Home
  • 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 8803559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:22:09+00:00 2026-06-14T01:22:09+00:00

I’m just curious. Is there a reason why the higher powers that be have

  • 0

I’m just curious. Is there a reason why the “higher powers that be” have never added to the HTML spec (or XML specs, for that matter,) a shorthand method for closing tags that contain content?

For instance, lets say I have the following html table:

<table>
    <tr><td>foo</td><td>bar</td><td>foo</td></tr>
    <tr><td>bar</td><td>foo</td><td>bar</td></tr>
    <tr><td>1</td><td>2</td><td>3</td></tr>
</table>

Is there any reason why a shorthand tag couldn’t be used to close each tag?

Maybe something like this:

<table>
    <tr><td>foo</><td>bar</><td>foo</></>
    <tr><td>bar</><td>foo</><td>bar</></>
    <tr><td>1</><td>2</><td>3</></>
</>

This could save a few bytes of data and the only downfall that I can see is that you can’t quickly tell which tag (or tags) have been closed if they aren’t given a named reference. However, this could be a useful option if you are dynamically generating content and want to save a few bytes in your data.

I’m positive I’m not the first person to think of this. Why hasn’t such functionality been added to any HTML or XML specification?

  • 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-06-14T01:22:11+00:00Added an answer on June 14, 2026 at 1:22 am

    HTML, as defined by specifications up and including HTML 4.01, does have shorthand methods for closing elements with content. This is just theoretical, but the question is really why browsers did not implement such features. The features are mentioned, among other things, in HTML 4.01 spec in B.3.7 Shorthand markup, and they include NET (= Null End Tag), e.g.

    <blockquote/foobar/
    

    which is by the formal definitions equivalent to

    <blockquote>foobar</blockquote>
    

    The spec says: “Documents that use them are conforming SGML documents, but are unlikely to work with many existing HTML tools.” This is an understatement in the sense that no browser ever implemented HTML by those specifications, i.e. as an SGML application (though some very rare browsers made some attempts at that direction). The issue is still reflected in HTML validation (in classic sense, excluding HTML5 validation, which plays by its own rules); see the Saga of Slashed Validators.

    So why didn’t browsers implement the specs in this respect? It would have been easy, in a sense, to take some existing SGML parser and include it into a browser. But the explanation is that browsers were written in ad hoc ways, fast and loose and pragmatically, paying little or no attention to issues like generalized markup. HTML specifications were written quite some time after first browsers, mostly standardizing existing practice but also throwing in some new principles. HTML was kind of retrofitted to SGML in the formal sense, but this was never taken seriously by browser vendors.

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

Sidebar

Related Questions

I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a small JavaScript validation script that validates inputs based on Regex. I
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I have thousands of HTML files to process using Groovy/Java and I need to

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.