The <nextid> element was an early, tool-generated HTML tag for the NeXT web editor. It stored the next automatic identifier value used when that tool created anchor NAME labels.
Learn it only to recognize legacy markup. For new work, assign unique id values yourself, or generate GUIDs / UUIDs (WHATWG guidance: use GUIDs instead of nextid).
Obsolete / Non-conforming.
Do not use <nextid> in new HTML. It is listed as entirely obsolete in the HTML Standard and is not supported by modern browsers.
Modern replacement.
Put a unique id on the element you need to target, or create IDs with crypto.randomUUID() (or another GUID) when building dynamic HTML.
Syntax
HTML Syntax
syntax.html
<nextid n="id">
Historical void / editor metadata markup (exact early forms varied). Modern equivalent:<element id="unique-name"> or a generated GUID.
Reference
Attributes
Legacy attributes (study only). Prefer the modern column in new work:
Create or select the element you need to identify.
Generate a GUID (prefer crypto.randomUUID() when available).
Assign element.id so CSS, links, and scripts can find it.
This replaces nextid’s job without obsolete markup.
Watch out
Edge Cases & Pitfalls
obsolete
Copying nextid into new pages
It never belonged in hand-authored HTML5. Delete it; use id instead.
history
Editor-only metadata
NeXT tools wrote nextid automatically. It was not a general “next ID API” for authors.
ids
Duplicate id values
Each id must be unique in the document. Duplicates break links and getElementById.
name
Old anchor name
Early pages used <a name="…"> for fragments. Prefer id on a heading or section today.
support
No browser feature to test
Compat tables show no support. Do not expect polyfills — migrate to id / GUIDs.
validators
HTML checkers flag it
Validators treat nextid as non-conforming obsolete markup.
Compatibility
Browser Support
The <nextid> element is obsolete HTML. It is not part of modern authoring and is not a Node.js, Deno, or Bun API.
✓ Obsolete · No support
<nextid>
Removed from HTML long ago (gone by HTML 3.2 era DTDs). Chrome, Firefox, Safari, Edge, and Opera do not implement it. Use id or GUIDs.
0%Authoring use (new pages)
Google ChromeNo
Obsolete
Mozilla FirefoxNo
Obsolete
Apple SafariNo
Obsolete
Microsoft EdgeNo
Obsolete
OperaNo
Obsolete
Samsung InternetNo
Obsolete
Internet ExplorerNo
Obsolete
<nextid>Do not use
Bottom line: Recognize it in archives only. Assign real id values or generate GUIDs for new work.
Remember
Key Takeaways
Fact:<nextid> is obsolete NeXT-editor metadata, not modern HTML.
Replace: use the id attribute on the element you need.
Dynamic: generate GUIDs / UUIDs when creating nodes in script.
Practice: never add nextid to new tutorials or production pages.
One line: skip <nextid> — identify elements with id or GUIDs.
UA style
Default CSS Settings
There is no meaningful user-agent stylesheet for <nextid>. Modern engines do not implement the element’s original purpose.
default.css
/* No standard UA rules for nextid.
Unknown / obsolete elements typically do not affect layout. */
Style real content with CSS on elements that have a proper id or class.
Frequently Asked Questions
nextid was an early, tool-generated element for the NeXT web editor. It stored the next automatic NAME / identifier value for anchors. Authors were not meant to write it by hand.
No. It is obsolete and non-conforming. Modern browsers do not implement it. Do not use it in new pages.
Set unique id attributes on elements yourself, or generate GUIDs / UUIDs (for example crypto.randomUUID()) when creating dynamic markup.
Historically nextid used an N attribute to hold the next identifier (first a number, later also a name). Treat it as legacy documentation only.
Rarely. It vanished from HTML DTDs long ago (around HTML 3.2). If you see it, remove it and assign real id values where needed.
No. id identifies a specific element in the DOM. nextid was an editor bookkeeping tag and never a modern way to label content.