W3cubDocs

/HTML

<nextid>

Deprecated
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

<nextid> is an obsolete HTML element that served to enable the NeXT web designing tool to generate automatic NAME labels for its anchors. It was generated by that web editing tool automatically and was not to be adjusted or entered by hand. This element has the distinction of being the first element to become one of the "Lost Tags" by being eliminated from the official public DTD's of the HTML versions. It is also probably one of the least understood of all of the early HTML elements.

HTML "0.a" - from the beginning through January 10, 1991
This tag had not been invented as yet, so no examples are found from this period.
HTML "0.c" - from January 23, 1991 though November 23, 1992
This early version of HTML introduced <NEXTID> in a non-SGML compliant form that simply used the numeric value alone as an "attribute."
HTML "0.d" - from November 26, 1992 through May 24, 1993
During this span, NeXT and the oldest surviving DTD's show <NEXTID> to take only a number for a value of its newly-introduced attribute N.
HTML "1.k" - Version 1 (first release)
In this first published draft of HTML, <NEXTID> is the same as it would take in HTML 2, finally allowing the use of a name instead of only a number for its attribute value.
HTML "1.m" - Version 1 (second release)
In the next published draft of HTML, <NEXTID> <NEXTID> can be individually deselected for display with a simple SGML command.
HTML Version 2 Level 1
This is like the level 2 default but it excludes all the forms elements, i. e. <FORM>, <INPUT>, <TEXTAREA>, <SELECT>, and <OPTION>
HTML Version 2 Strict Level 1
This is like regular Level 1 but it also excludes these depreciated elements, along with such constructs as nesting a header (<H*> element) within a link (<A> element)
HTML Version 2 Level 2
This is the default and includes and permits all HTML Level 2 functions and elements and attributes
HTML Version 2 Strict Level 2
This excludes these depreciated elements and also forbids such constructs as nesting a header (<H*> element) within a link (<A> element), or having a forms <INPUT> element which is not within a block level element such as <P>
HTML Version 3.2
<NEXTID> has vanished altogether, never to be heard from again.

Attributes

Like all other HTML elements, this element accepts the global attributes.

n
Reference to anchor.

Example

The user enters four section headings into the Table of Contents (and presumably also writing paragraph material within these sections). The heading for each of the four sections would be assigned NAME values of "z0", "z1", "z2", and "z3". The first of these would produce an entry in the Table of Contents like this: <A NAME="z0" HREF="#z4">FIRST SECTION NAME</A> and the section header would be marked like this: <H2><A NAME="z4">FIRST SECTION NAME</A></H2>. This continues for the next three sections, z5, z6, and z7 (and Table of Contents entries named z1, z2, and z3), each automatically given anchors with these names. The user then saves and closes the document. NeXT would then add, within the header of the HTML document, a special tag, <NEXTID N="z8">, to inform where to continue its naming convention. Imagine the web author opens the document for further editing. They want to add a couple new sections after the second section, appending four more sections at the end. When opening the document, the NeXT editor finds and reads this <NEXTID N="z8"> tag, and now knows to give the first of these new sections the name of z8 in the Table of Contents, and z14 to the content body. This might look like this:

<HTML>
    <HEAD>
        <TITLE> ... whatever ... </TITLE>
        <LINK, META, BASE, etc. as applicable for the head of this document>
        <NEXTID N="z20">
    </HEAD>
    
    <BODY>
        <A NAME="z0" HREF="#z4">FIRST SECTION HEADING</A>
        <A NAME="z1" HREF="#z5">SECOND SECTION HEADING</A>
        <A NAME="z8" HREF="#z14">NEWLY INSERTED THIRD SECTION HEADING</A>
        <A NAME="z9" HREF="#z15">NEWLY INSERTED FOURTH SECTION HEADING</A>
        <A NAME="z2" HREF="#z6">ORIGINAL THIRD (NOW FIFTH) SECTION HEADING</A>
        <A NAME="z3" HREF="#z7">ORIGINAL FOURTH (NOW SIXTH) SECTION HEADING</A>
        <A NAME="z10" HREF="#z16">SEVENTH SECTION HEADING</A>
        <A NAME="z11" HREF="#z17">EIGHTH SECTION HEADING</A>
        <A NAME="z12" HREF="#z18">NINTH SECTION HEADING</A>
        <A NAME="z13" HREF="#z19">TENTH SECTION HEADING</A>
        <H2><A NAME="z4">FIRST SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z5">SECOND SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z14">NEWLY INSERTED THIRD SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z15">NEWLY INSERTED FOURTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z6">ORIGINAL THIRD (NOW FIFTH) SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z7">ORIGINAL FOURTH (NOW SIXTH) SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z16">SEVENTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z17">EIGHTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z18">NINTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z19">TENTH SECTION HEADING</A></H1><P> ... whatever ... </P>
    </BODY>
</HTML>

They then forward a copy of this document to someone with a NeXT editor, and they delete sections z7 and z19, add ten more, z20 through z29, and then delete paragraphs z24 and z29. So then the NEXTID value is z30 when it's returned modified:

<HTML>
    <HEAD>
        <TITLE> ... whatever ... </TITLE>
        <LINK, META, BASE, etc. as applicable for the head of this document>
        <NEXTID N="z30">
    </HEAD>

    <BODY>
        <A NAME="z0" HREF="#z4">FIRST SECTION HEADING</A>
        <A NAME="z1" HREF="#z5">SECOND SECTION HEADING</A>
        <A NAME="z8" HREF="#z14">NEWLY INSERTED THIRD SECTION HEADING</A>
        <A NAME="z9" HREF="#z15">NEWLY INSERTED FOURTH SECTION HEADING</A>
        <A NAME="z2" HREF="#z6">ORIGINAL THIRD (NOW FIFTH) SECTION HEADING</A>
        <A NAME="z10" HREF="#z16">SEVENTH (NOW SIXTH) SECTION HEADING</A>
        <A NAME="z11" HREF="#z17">EIGHTH (NOW SEVENTH) SECTION HEADING</A>
        <A NAME="z12" HREF="#z18">NINTH (NOW EIGHTH) SECTION HEADING</A>
        <A NAME="z20" HREF="#z25">NEW NINTH SECTION HEADING</A>
        <A NAME="z21" HREF="#z26">NEW TENTH SECTION HEADING</A>
        <A NAME="z22" HREF="#z27">NEW ELEVENTH SECTION HEADING</A>
        <A NAME="e23" HREF="#z28">NEW TWELFTH SECTION HEADING</A>
        <H2><A NAME="z4">FIRST SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z5">SECOND SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z14">NEWLY INSERTED THIRD SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z15">NEWLY INSERTED FOURTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z6">ORIGINAL THIRD (NOW FIFTH) SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z16">SEVENTH (NOW SIXTH) SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z17">EIGHTH (NOW SEVENTH) SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z18">NINTH (NOW EIGHTH) SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z25">NEW NINTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z26">NEW TENTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z27">NEW ELENENTH SECTION HEADING</A></H1><P> ... whatever ... </P>
        <H2><A NAME="z28">NEW TWELFTH SECTION HEADING</A></H1><P> ... whatever ... </P>
    </BODY>
</HTML>

HTML Reference

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
nextid No No No No No No
Mobile
Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
nextid No No No No No No

See also

© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nextid