1
XHTML - Lesson 3/5 on Mon Aug 02, 2010 3:09 pm
Unknown Data
Registered Member

XHTML - Lesson 3/5 Learn XHTML - Part 3 |
This is lesson 3 out of 5. Elements in XHMTL The elements in a XHTML document got a lot of new rules. To observe these rules, determines if we can use the XML methods, etc. We will take a look at three steps in this tutorial. Elements should be written with small letters In XML (and also in XHTML) is there a big different if we write with small and big letters. That means there is a big difference at these three elements: <table>, <Table>, <TABLE>. To avoid misunderstanding it's important to conclude witch elements we write with. In XHTML is it defined that element should be written with small letters. Wrong: elements written with big letters
Correct: elements written with small letters
Elements may not overlap each other Because many browsers had tolerated overlapped elements, although it had been against the standard, is it popular to let elements overlap each other in HTML documents. That's not allowed in XHTML were we have to end a element, before starting a new one. Again lets take a example. Wrong: elements overlapping each other
Correct: elements not overlapping each other
All elements should be completed Unlike HTML, we have to end a element. Wrong: element there aren't completed
Correct: elements there are completed
The rule apply for all elements - also them that we never used to end. Fx the <br>, as something new it should be completed like this: "<br><br/>". As this gives problem to some old browsers, is it also allowed to just use <br/> and but it's important to remember the slash. |
| Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |

Home
