Tag omission

Tag omission

Tag omission is an optional feature to minimize an SGML document. Whenever a tag can be implicitly anticipated by the parser from the structure of the document, the tag can be omitted. [ [http://www.is-thought.co.uk/book/sgml-9.htm#OMITTAG Web SGML and HTML 4.0 Explained - Chapter 9 ] ] The tag omission feature can be generally enabled or disabled in the SGML Declaration. The Document Type Definition is used to enable or disable the tag for a specific tag.

Example

In this example the <document> tag has a distinct order of the tags. The information that <title> needs to come first and is followed by <p> can be used to omit the title start and end tag. Furthermore the end tag of <p> can also be omitted, because it will be delimited by the next <p> tag or the document end.

In this DTD specification, the behavior of the tag omission feature is specified for each element by the two characters following the element name. The values can be - or O for disabling and enabling the features. The first character specifies the behavior of the start tag and the second the behavior of the end tag.

A valid document not using tag omission: Tag Omission

first paragraph

second paragraph

third paragraph

A valid document simplified by using tag omission: Tag Omission

first paragraph

second paragraph

third paragraph

References


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Omission Bias — Der sogenannte Omission Bias (engl.; etwa: „die Neigung zur Unterlassung“) ist die Bezeichnung für ein von den Verhaltenswissenschaften beschriebenes Phänomen, nach dem eine Handlung subjektiv als riskanter angesehen wird als eine andere… …   Deutsch Wikipedia

  • Hypertext Markup Language — Vorlage:Infobox Dateiformat/Wartung/MagischeZahl fehlt HTML (Hypertext Markup Language) Vorlage:Infobox Dateiformat/Wartung/Screenshot Format Dateiendung …   Deutsch Wikipedia

  • Wikipedia:Manual of Style — This guideline is a part of the English Wikipedia s Manual of Style. Use common sense in applying it; it will have occasional exceptions. Please ensure that any edits to this page reflect consensus. Shortcuts …   Wikipedia

  • Apostrophe — redirects here. For other uses, see (disambiguation). Apostrophes redirects here. For the music book, see Apostrophes: A Book of Tributes to Masters of Music. For other uses, see Apostrophe (disambiguation). ’ Apostrophe …   Wikipedia

  • Textual criticism — Carmina Cantabrigiensia, Manuscript C, folio 436v, 11th century Textual criticism (or lower criticism) is a branch of literary criticism that is concerned with the identification and removal of transcription errors in the texts of manuscripts.… …   Wikipedia

  • Conduit 2 — North American cover art Developer(s) High Voltage Software Publisher(s) …   Wikipedia

  • Number 1's (Mariah Carey album) — The correct title of this article is #1 s (Mariah Carey album). The substitution or omission of the # sign is because of technical restrictions. #1 s …   Wikipedia

  • Namensgebung des Persischen Golfes — Der Persische Golf, welcher die Arabische Halbinsel vom Iranischen Hochland trennt, hatte im Laufe der Geschichte verschiedene Namen. Varianten der Bezeichnung „Persischer Golf“ (persisch ‏خليج فارس‎ chalidsch e fārs, benannt nach der… …   Deutsch Wikipedia

  • Gender differences in spoken Japanese — The Japanese language is unusual among major languages in the high degree to which the speech of women collectively differs from that of men. Differences in the ways that girls and boys use language have been detected in children as young as… …   Wikipedia

  • Soulcalibur IV — Infobox VG title = Soulcalibur IV caption = developer = Project Soul distributor = publisher = Namco Bandai Ubisoft (Europe) composer = Masaharu Iwata, Jun ichi Nakatsuru and Keiki Kobayashi designer = series = Soul series engine =Havok (game… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”