Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nextid

Este artigo necessita de uma revisão editorial. Como posso ajudar.

Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil) . Junte-se a nós e ajude a fazer o trabalho!

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

Summary

<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 deslected 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

Say for example the user enters four section headings into the Table of Contents (and presumably also writing paragraph material within the 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 at the section itself would be marked like this: <H2><A NAME="z4">FIRST SECTION NAME</A></H2>. This continues for the next three sections, named z5, z6, and z7 (and Table of Contents entries named z1, z2, and z3), and each are automatically given anchors with these names. Then he decides to save and close his document. NeXT would then add within the header of the HTML document a special tag, <NEXTID N="z8"> to inform itself of where to continue its naming convention from, the next time it opens the document. So, imagine the web author opens the document for further editing. He wants to add a couple new sections after his second section and append four more sections at the end. So he opens the document, and the NeXT editor finds and reads this <NEXTID N="z8"> tag and knows to give the first of these new sections he adds the name of z8 in the Table of Contents and z14 at its content body. What he now has, once he is done again and closes the document 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>

Then he sends a copy of this document to his friend who also has a NeXT editor, and who deletes sections z7 and z19 and adds ten more, z20 through z29, and then deletes paragraphs z24 and z29. So then the NEXTID value is z30 when he returns it modified, to the original author, looking thus:

<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

See also

Etiquetas do documento e colaboradores

 Colaboradores desta página: dcondrey
 Última atualização por: dcondrey,