Learnthat.com Free Certification and Computer Online Courses
ThatNetwork.com Internet Media Network Exampractice.com free certification practice exams, mcse, comptia Definethat.com - Free technical definitions, define Free Romance Tips, Romantic Tips, Date Ideas Free POD publisher comparison print on demand
Learnthat.com Free A+ Certification, Computer Classes, Certification Courses, Business, Lifestyle, ApplicationsFree business tutorials and definitionsFree certification tutorials and definitionsFree computer and technical tutorials and technical definitionsFree Finance Tutorials and DefinitionsFree House Repair TutorialsFree Lifestyle and Fun Tutorials
  All Online CoursesNew Courses QuickTipsWord DefinitionsSubmit a TutorialLinks
÷ Resources
Home
free tech tutorials
Free Tutorials
free tech tutorials
Certifications
free tech tutorials
Definitions
free tech tutorials
Resources/Links
free tech tutorials
Forums
free tech tutorials
Distance Education
free tech tutorials
Highest Rated Tutorials
÷ Popular Tutorials
÷ New Tutorials

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
  • XHTML documents must be "well written"
  • XHTML tags must be in lowercase characters

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>
<head>
</head>
<body>
<p>Hey there. I am your <b>instructor for this course</b>.<br>
This will be a great course!
<p>This course will focus on XHTML.
<p>Thanks for taking our course.
</body>
</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>
<head>
</head>
<body>
</body>
</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:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2004 Learnthat.com