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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:15:29+00:00 2026-05-30T13:15:29+00:00

In HTML 4.01 certain end tags are forbidden , that means it in not

  • 0

In HTML 4.01 certain end tags are forbidden, that means it in not valid markup to have them, e.g.:

Invalid                     Valid
===================         =================
<BR/>                       <BR>
<BR></BR>      

<IMG src="..."/>            <IMG src="...">
<IMG ...></IMG>

<INPUT ... />               <INPUT ...>
<INPUT ...></INPUT>

In the HTML 4.01 specification the indication of an end tag being optional or forbidden is nicely summarized in the index of elements:

Name        Start Tag       End Tag
AREA                        F
BASE                        F
BASEFONT                    F
BODY        O               O
BR                          F
COL                         F
COLGROUP                    O
DD                          O
DT                          O
FRAME                       F
HEAD        O               O
HR                          F
HTML        O               O
IMG                         F
INPUT                       F
ISINDEX                     F
LI                          O
LINK                        F
META                        F
OPTION                      O
P                           O
PARAM                       F
TBODY       O               O
TD                          O
TFOOT                       O
TH                          O
THEAD                       O
TR                          O

Where is the HTML 5 equivalent of indicating which end tags are:

  • required
  • optional (implicit)
  • forbidden
  • 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-30T13:15:30+00:00Added an answer on May 30, 2026 at 1:15 pm

    When and how optional end tags should behave, in HTML5 spec:

    http://www.w3.org/TR/html5/syntax.html#void-elements

    8.1.2 Elements

    Void elements only have a start tag; end tags must not be specified for void elements.

    Void Elements

    • area
    • base
    • br
    • col
    • command
    • embed
    • hr
    • img
    • input
    • keygen
    • link
    • meta
    • param
    • source
    • track
    • wbr

    A more concise form:

    Element Type    Start Tag  End Tag
    =============== =========  =========
    Normal          -          O (some)
       html         O*         O*
       head         O*         O*
       body         -          O*
       li           -          O*
       dt           -          O*
       dd           -          O*
       p            -          O*
       rt           -          O*       
       rp           -          O*
       optgroup     -          O*
       option       -          O*
       colgroup     O*         O*
       thead        -          O*
       tbody        -          O*
       tfoot        -          O*
       tr           -          O*
       td           -          O*
       th           -          O*
       otherwise    -          -
    Raw text        -          -
       script
       style
    RCDATA          -          -
       textarea
       title
    Void            -          F
       area
       base
       br
       col
       command
       embed
       hr
       img
       input
       keygen       
       link
       meta
       param
       source
       track
       wbr
    Foreign         -          -          
       MathML
       SVG
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I certain html page contains links that are displayed with each onclick event. I
I have a php script (generator.php) which generates certain HTML/XML/SVG depending on various conditions.
My goal is to take HTML entered by an end user, remove certain unsafe
I have an text that consists of information enclosed by a certain pattern. The
I'm building a CKEditor 3.x plug-in that allows certain sections of HTML to be
I am not sure how to achieve a certain effect in CSS. I have
Say you have a legacy website running on an old code-base that offers certain
I have a html string. In that I defined some area for editing. That
I have some javascript that should log a user out after a certain period
I'd like to have vim highlight entire lines that match certain patterns. I can

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.