![]() |
|
| • All Online Courses • New Courses • QuickTips • Word Definitions • Submit a Tutorial • Links • |
|
Introduction to XHTML In the first section of this tutorial, we learned a few differences you must learn when writing XHTML:
XHTML tags must be closed The first major differences between XHTML and HTML is the fact tags must be closed. What do we mean? In HTML, this could be a structure of your document: <html> In XHTML, you must close each of your <p> tags and you must close the <br> tag. In normal HTML, you can close the <p> tag with </p>, however, since there is no "close" tag for <br>, you can close it in XHTML by using <br />. Older browsers will ignore everything after the space in <br />. XHTML Documents must be well written Currently, browsers forgive most of your mistakes in writing your code. In XHTML, however, you must keep your documents well formed and well written. When you are creating a web page, you need to keep elements within their proper structure. For example: <html> is the proper structure of webpage. XHTML Tags must be written in lower case XHTML is a form of XML. XML considers lower and upper case to be different characters and different tags. In XHTML documents, you must use lower case characters for all tags. <P><B>Hi there, this is a test.</B></P> is incorrect. The correct code would be written: <p><b>Hi there, this is a test.</b></p>
XHTML is a new way to write your HTML and the preferred method for web development.
by Learnthat.com Find more free Internet tutorials from Learnthat.com. More Information:
Help us by rating this tutorial: [---] [--] [+] [++] [+++] [---] lowest; [+++] highest
|
|
||||||
![]() |
Learn: Free
Tutorials - Links
to Free Tutorials
Understand: Free Technical Definitions
- ExplainThat Whitepapers
Use: Certification Section -
Discussion Forum
Visit Our Network Sites:
About Us : Contact Us : Advertise : Privacy Information