V5.0tag

tag — A component of XML (or SGML) markup.

Synopsis

tag ::=

Attributes

Common attributes and common linking attributes.

Additional attributes:

  • class (enumeration)
    • “attribute”
    • “attvalue”
    • “element”
    • “emptytag”
    • “endtag”
    • “genentity”
    • “localname”
    • “namespace”
    • “numcharref”
    • “paramentity”
    • “pi”
    • “prefix”
    • “comment”
    • “starttag”
    • “xmlpi”
  • namespace (anyURI)

Description

A tag identifies an XML or SGML markup construct. The utility of this element is almost wholly constrained to books about markup.

Processing expectations

Formatted inline.

A tag generates all the necessary punctuation before and after the construct it identifies. For example, it generates both the leading ampersand and the trailing semicolon when the class is genentity.

Attributes

Common attributes and common linking attributes.

any attribute

Any attribute in any other explicit namespace

class

Identifies the nature of the tag content

Enumerated values:
“attribute”

An attribute

“attvalue”

An attribute value

“element”

An element

“emptytag”

An empty element tag

“endtag”

An end tag

“genentity”

A general entity

“localname”

The local name part of a qualified name

“namespace”

A namespace

“numcharref”

A numeric character reference

“paramentity”

A parameter entity

“pi”

A processing instruction

“prefix”

The prefix part of a qualified name

“comment”

An SGML comment

“starttag”

A start tag

“xmlpi”

An XML processing instruction

namespace

Identifies the namespace of the tag content

Parents

These elements contain tag: bridgehead, caption (db.html.caption), citation, citetitle, classsynopsisinfo, computeroutput, contrib, emphasis (db.emphasis), entry, enumitemdescription, firstterm (db.firstterm), funcsynopsisinfo, glosssee, glossseealso, glossterm (db.glossterm), initializer, link, literallayout, member, meta (db.meta.content), olink, orgdiv, para, phrase (db.phrase), primary, primaryie, programlisting, quote (db.quote), refdescriptor, refentrytitle, refname, refpurpose, remark, screen, secondary, secondaryie, see, seealso, seealsoie, seeie, seg, segtitle, simpara, subtitle, synopsis, synopsisinfo, tag, td, term, termdef, tertiary, tertiaryie, th, title, titleabbrev, tocentry, userinput.

Children

The following elements occur in tag: text, abbrev, acronym, alt, anchor, annotation, biblioref, coref, date, emphasis (db._emphasis), firstterm (db._firstterm), footnote, footnoteref, foreignphrase (db._foreignphrase), glossterm (db._glossterm), indexterm (db.indexterm.endofrange), indexterm (db.indexterm.singular), indexterm (db.indexterm.startofrange), inlinemediaobject, link, olink, phrase (db._phrase), quote (db._quote), remark, replaceable, subscript, superscript, tag, trademark, wordasword, xref.

See Also

Related elements: computeroutput, constant, literal, markup, option, optional, parameter, prompt, replaceable, userinput, varname.