HTML and CSS Reference
In-Depth Information
</book>
The indentation of the child elements and the placement of the opening and closing tags of
the parent element into separate lines are strictly for readability. For software programs that
can interpret this markup, placing everything in one line would have the exact same mean-
ing. Additionally, markup-reading applications will typically ignore all whitespace between
the tags, like empty spaces, indentations or line breaks. The application simply interprets
any number of consecutive spaces or tabs as a single space.
<book><title>The
Lord
of
the
Rings:
The
Fellowship
of
the
Ring</title><author>J.R.R.
Tolki-
en</author><genre>Fantasy</genre><published>July 29th, 1954</published></book>
However, writing markup in this manner is not conducive to reading and managing the text,
therefore it is recommended to place each element on a new line.
Note: There is a higher order markup language that allows us to create our own
tags, just like in this example. This language is called eXtensible Markup Language
(XML).
 
Search WWH ::




Custom Search