Tag Omission - Example

Example

In this example the tag has a distinct order of the tags. The information that 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.</p> <!ELEMENT document - O (title, p+) > <!ELEMENT title O O (#PCDATA)> <!ELEMENT p - O (#PCDATA)> <p>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.</p> <p>A valid document not using tag omission:</p> <document> <title>Tag Omission

first paragraph

second paragraph

third paragraph

A valid document simplified by using tag omission:

Tag Omission

first paragraph

second paragraph

third paragraph

Read more about this topic:  Tag Omission

Famous quotes containing the word example:

    Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.
    Marcel Proust (1871–1922)