Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index

XHTML Tutorial - What Is an XHTML Element

By: FYIcenter.com

(Continued from previous topic...)

What Is an XHTML Element?

An XHTML element is the basic building block of an XHTML document. An XHTML element has the following features:

  • An XHTML element must have a name.
  • An XHTML element may have zero or more attributes.
  • An XHTML element may or may not have any content.

Here is a good example of an XHTML element:

  <a href="http://dev.fyicenter.com/">FYIcenter.com</a>

The above an XHTML element has:

  • A name called "a", which is coded at the beginning of the opening tag.
  • An attribute called "href", which is coded inside the opening tag. It also has a value specified after the "=" sign.
  • A string of text as the content, which is coded between the opening tag and closing tag.

(Continued on next topic...)

  1. What Is an XHTML Element?
  2. How To Enter Comments into XHTML Documents?
  3. How To Write the Opening Tag of an XHTML Element?
  4. How To Close an XHTML Element?
  5. What Is Wrong with My <br> Tags?
  6. What Is Wrong with My <meta> Tags?
  7. How To Enter Element Content?
  8. Is XHTML Element Name Case Sensitive?
  9. What Is an XHTML Element Attribute?
  10. How To Write Element Attributes Properly?
  11. Is Attribute Name Case Sensitive?
  12. How To Quote Element Attribute Values Properly?
  13. How To Write Ampersand Sign in Attribute Values?
  14. What Is a Required Attribute?
  15. What Are Predefined Attribute Values?
  16. What Is Wrong with My "checked" Attribute Values?


Selected Developer Jobs:

More...