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

XHTML Tutorial - The Opening Tag of an XHTML Element

By: FYIcenter.com

(Continued from previous topic...)

How To Write the Opening Tag of an XHTML Element?

When you are writing an XHTML element, you must start with its opening tag, which contains the name of the element and attributes if needed. The opening tag is enclosed in a pair of angle brackets: "<" and ">".

XHTML element names are predefined by the XHTML specification. You can not make up your own tag names. Here are some good examples of XHTML element opening tags:

  • <html> - Opening tag of the html element.
  • <head> - Opening tag of the head element.
  • <title> - Opening tag of the title element.
  • <body> - Opening tag of the body element.
  • <p> - Opening tag of the p element.
  • <script> - Opening tag of the script element.

(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...