WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Accespted XHTML - Lesson 3/5 Mon Aug 02, 2010 4:39 pm

Unknown Data

Unknown Data
Registered Member
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
Code:
<BODY><P>Some text to ad</P></BODY>
Correct: elements written with small letters
Code:
<body><p>Some text to ad</p></body>
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
Code:
<p>Some text <strong>to ad</p></strong>
Correct: elements not overlapping each other
Code:
<p>Some text <strong>to ad</strong></p>
All elements should be completed
Unlike HTML, we have to end a element.

Wrong: element there aren't completed
Code:
<p>Some text to ad
Correct: elements there are completed
Code:
<p>Some text to ad</p>
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.

http://woops.dk

2Accespted Re: XHTML - Lesson 3/5 Sun Aug 22, 2010 7:40 pm

Joel

Joel
Registered Member
Registered Member
Great tutorial unknown data! Very nice!

http://www.advertisehotspot.info/

3Accespted Re: XHTML - Lesson 3/5 Mon Aug 23, 2010 4:39 pm

Unknown Data

Unknown Data
Registered Member
Registered Member
Thank you Joel! Smile

http://woops.dk

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum