Computer Science, asked by piyush1251, 1 year ago

write the syntax rule for writing tag

Answers

Answered by rajwalia
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