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 4/5 Mon Aug 23, 2010 4:05 pm

Unknown Data

Unknown Data
Registered Member
Registered Member
XHTML - Lesson 4/5
Learn XHTML - Part 4


This is lesson 4 out of 5.

Attributes in XHTML
Like elements there are some specific rules to observe.
We will take a look at four steps in this tutorial.

Attributes should be written with small letters
As with elements it's also important to write the attributes with small letters.

Wrong: attribute written with big letters
Code:
<table BORDER="1" ALIGN="LEFT">
Correct: attribute written with small letters
Code:
<table border="1" align="left">
The value should always be written with quotes
The value of a attribute should always be written with quotes. Notice that this also apply to numeric values.

Wrong: the value is indicated without quotes
Code:
<table border=1>
Correct: the value is indicated with quotes
Code:
<table border="1">
Minimized attributes
In HTML is it possible to use minimized attributes. But in XHTML these attributes should be transcribed to normal attributes.

Wrong: minimized attribute
Code:
<option selected>
Correct: attributes indicated in full length
Code:
<option selected="selected">
The attribute ID should be used to identification
HTML 4 introduced the attribute "name" for elements like: <a>, <form>, <frame>, <img> and more. HTML 4 introduced also the attribute "id" - both of them to make a indication a element.

In a XHTML document should "id" fx. be used to identification of bookmark. Like here.

Wrong: write attribute name
Code:
<h1><a name="bookmark">Title</a></h1>
Correct: write attribute id
Code:
<h1 id="bookmark">Title</h1>
Notice that the attribute name still can be used at form fields. Fx <input name="name" type="text"/>

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 4/5 Mon Aug 23, 2010 4:23 pm

Joel

Joel
Registered Member
Registered Member
Another great tutorial. Love it Very Happy

http://www.advertisehotspot.info/

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

Unknown Data

Unknown Data
Registered Member
Registered Member
I'm saying thanks again! 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