XHTML Elements

XHTML Elements

  • XHTML documents are text files made up of XHTML elements.
  • XHTML elements are defined using XHTML tags.
What Is An XHTML Element
An XHTML element indicates structure in an XHTML document and a way of hierarchically arranging content. XHTML elements have both properties attributes and content, according to the appropriate XHTML DTD as specfied (allowable and required). A variety of structures are represented by elements like headings, hypertext links, paragraphs, lists, embedded media.
XHTML elements can be constructed with:1) a start tagthat marks the start of an element.
2) it may follow any number of attributes and their corresponding values.
3) it can have some contentin it. (characters and other elements). and
4) finally an end tag comes

Many of XHTML elements hold attributes in the start tags, defining desired behavior or indicating additional element properties. Unlike HTML here there is always a need of end tag. There are some elements which are not subset of any official DTDs, but still are supported by some browsers and are also used in some web pages. All such elements may be ignored or displayed improperly on browsers which do not support them.


XHTML Tags
Sometimes XHTML elements are referred to as “tags”. though many prefer “tag” strictly to the semantic structures to delimit the start and end of an element.
  • XHTML tags are used to mark-up XHTML elements
  • In XHTML the tags are always surrounded by < and >
  • These characters are called angle brackets
  • XHTML tags always come in pairs like <b> and </b>
  • The first tag is called the start tag, and the second tag is the end tag
  • The text that lies between the start and the end tags is called element content
  • XHTML tags are case sensitive,
WE should start using lowercase tags if we have to prepare ourself for the next generations of HTML, XHTML which is next generation HTML demands for lowercase tags
DOWNLOAD SOLUTION HERE