How To Close an XHTML Element?
Submitted by: AdministratorEvery 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.
Submitted by: Administrator
► 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.
Submitted by: Administrator
Read Online XHTML Job Interview Questions And Answers
Top XHTML Questions
☺ | How To Enter Comments into XHTML Documents? |
☺ | Is XHTML Element Name Case Sensitive? |
☺ | What Is URI? |
☺ | How To Enter Element Content? |
☺ | What Tools to Use to View XHTML Documents? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |