Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index
XHTML Tutorial - Closing an XHTML Element
(Continued from previous topic...)
How To Close an XHTML Element?
Every XHTML element must be closed. There are two ways to close
an XHTML element:
- Using a closing tag, which is the element name prefixed with "/"
and enclosed in a pair of angle brackets: "<" and ">".
- Closing the opening tag immediately by placing "/" before
the ending bracket: ">".
Here are some good examples of closing XHTML elements:
- <html>...</html>- Closing the html element with a closing tag.
- <head>...</head> - Closing the head element with a closing tag.
- <title/> - Closing the title element immediately with no content.
- <body>...</body> - Closing the body element with a closing tag.
- <p>...</p> - Closing the p element with a closing tag.
- <script/> - Closing the script element immediately with no content.
(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?