In some texts about XML, the terms tag and element seem to be used interchangeably. Do they mean the same thing, or are do these terms represent different things?
In some texts about XML, the terms tag and element seem to be used interchangeably. Do they mean the same thing, or are do these terms represent different things?
HTML elements are defined by a starting tag, may contain some content and a closing tag whereas Tags are the starting and ending parts of an HTML element.
<address category = "residence">
<name>name content</name>
<company>company content</company>
<phone>(011) 123-4567</phone>
</address>
Here <address> is an element which has attribute category
Start and end tags of an element must be identical.