Defining Elements

Elements

An element in an XML document is an object that starts with a start-tag, may contain a value, and may end with an end-tag. Based on this, the combination of a start-tag, the value, and the end-tag is called an element. An element can be more than that but for now, we will consider that an element is primarily characterized by a name and possibly a value.

An element can contain:

Image 1

  • other elements
  • text
  • attributes
  • or a mix of all of the above..
Share this post
[social_warfare]
Defining Attributes
DTD Entities

Get industry recognized certification – Contact us

keyboard_arrow_up