|
Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index
FYIcenter - Software Developer FAQ - 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...)
- What Is an XHTML Element?
- How To Enter Comments into XHTML Documents?
- How To Write the Opening Tag of an XHTML Element?
- How To Close an XHTML Element?
- What Is Wrong with My <br> Tags?
- What Is Wrong with My <meta> Tags?
- How To Enter Element Content?
- Is XHTML Element Name Case Sensitive?
- What Is an XHTML Element Attribute?
- How To Write Element Attributes Properly?
- Is Attribute Name Case Sensitive?
- How To Quote Element Attribute Values Properly?
- How To Write Ampersand Sign in Attribute Values?
- What Is a Required Attribute?
- What Are Predefined Attribute Values?
- What Is Wrong with My "checked" Attribute Values?
|