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 7778791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:29:12+00:00 2026-06-01T18:29:12+00:00

I remember reading a while ago that in some cases leaving out end tags

  • 0

I remember reading a while ago that in some cases leaving out end tags (</li>, for example) speeds up the rendering (and loading/parsing, since there is less bytes) of a webpage?

Unfortunately, I forgot where I read this, but I remember it saying this feature was specific to HTML 4.0.

Since I no longer have access to this source I was wondering if someone can confirm this or link to the documentation on w3c (since I wasn’t able it find it myself)?

Thanks!


EDIT: Forgot to mention that I meant to ask if this behaviour is also available in HTML5.


EDIT 2: I manged to find the article again, and it does mention it only speeds the download speed of the page, not actual rendering:

One good reason for leaving out the end tags for these elements is because they add extra characters to the page download and thus slow down the pages. If you are looking for things to do to speed up your web page downloads, getting rid of optional closing tags is a good place to start. For documents that have lots of paragraphs or table cells this can be a significant savings.

Sorry for asking a pointless question! 🙁

  • 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-01T18:29:14+00:00Added an answer on June 1, 2026 at 6:29 pm

    Here is the list of HTML 4.01 elements.

    http://www.w3.org/TR/html401/index/elements.html

    The End Tag column says where end tags are optional.
    However, take note that this is valid only in HTML 4.01. In Xhtml, all end tags are required. Not 100% sure about HTML5.

    I wrote a HTML parser once, and believe me, if you’re a parser and you’re inside a <p> and you encounter a </table> end tag, it’s slower to check in your document tree if that is correct, and if so, to close the current <p> first, than if you simply encounter a </p>.

    Edit:
    Ah, found it: http://dev.w3.org/html5/html-author/#index-of-elements
    Same requirements as HTML 4.01.

    New edit:
    Oh, that was a page from 2009. This one is more up to date:
    http://dev.w3.org/html5/spec/syntax.html#optional-tags

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

Sidebar

Related Questions

I remember reading a while ago that either asynchronous or synchronous resets are more
I remember reading in passing that some of the new language features in C#
I remember reading somewhere that Qt guarantees the size of some data types on
I remember reading some books about Linux Device drivers around the end of my
I remember reading an article or post somewhere years ago that suggested including a
I remember reading a while back in regards to logical operators that in the
I was reading a while ago somewhere online that you could make a custom
I remember reading a while back that randomly SQL Server can slow down and
I remember reading something about a formal specification language for C a while ago,
I remember a while ago reading about an alternative (aka faster) way to perform

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.