write the syntax rule for writing tag
Answers
Answered by
3
Answer:
<root>
<element>
<subelement>...</subelement>
</element>
</root>
Element must have closing tag
In HTML, some element does not have a closing tag.
<p>This is the paragraph <!-- Invalid -->
<br > <!-- Invalid -->
<p>This is the paragraph</p> <!-- Valid -->
<br /> <!-- Valid -->
In XML every element must have closing tag.
<name>Opal Kole <!-- Invalid -->
<name>Opal Kole</name>
Similar questions