Jump to: navigation, Search
Poakpong.com ปกป้อง ดอมคอม Life is random

How to XHTML 1.0

หลักการทำงานของไฟล์ XHTML 1.0

• มีการกำหนด DOCTYPE ที่เหมาะสมกับเอกสาร แบ่งเป็นแบบเข้มงวด, แบบยืดหยุ่น, และแบบเฟรม

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

• มีการใช้ <tag></tag> ที่มีการจัดวางตำแหน่งที่ถูกต้อง

<p>here is an emphasized <em>paragraph</em>.</p>

• ต้องใช้ตัวหนังสือแบบเล็กเสมอ

<p></p>

• จะต้องมี <tag> ปิดเสมอ

<p>here is a paragraph.</p> <p>here is another paragraph.</p>
<br />
<hr />

• ค่าของ attribute ต่างๆ ใน <tag> จะต้องอยู่ในเครื่องหมายคำพูด "..."

<td rowspan="3"></td>

• จะต้องใช้คำขยาย attribute แบบเต็ม ไม่ให้ใช้แบบย่อ

<dl compact="compact"></dl>
<option selected="selected"></option>
<input type="radio" checked="checked" />

• ให้ใช้ attributes ชนิด id แทน name

<a href="#foo">...</a>
<a id="foo" name="foo">...</a>



Poakpong's Blog | Add New Comments

To support Thai language in iPod.

Inside Poakpong.com
มีอะไรใน ปกป้อง ดอทคอม

Subscribe RSS Feed

Recent All Posts

Poakpong's Playground

Copyright Notice

POAKPONG.com,
Update to 2008.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.

Disclaimer

เนื้อหา ข้อความ ความเชื่อ ในเว็บไซต์นี้ เป็นความคิดเห็นของผู้เขียน ผู้อ่านโปรดใช้วิจารณญาณในการอ่าน และคิดหาเหตุผลเพิ่มเติมด้วยตัวเอง รวมทั้งรูปภาพ ภาษา ซึ่งอาจไม่ถูกต้องตามหลักภาษา ผู้อ่านต้องใช้วิจารณญาณเช่นกัน

Our Network:

Create in Mac OS X

Search in Poakpong
ค้นหาใน ปกป้อง ดอทคอม



Advertising

เปิดเนต เปิดใจ
ปกป้องเสรีภาพของเรา
บนอินเทอร์เน็ตของเรา
(ร่วมลงชื่อในแถลงการณ์)

Google Friend Connect

Web Links

SEO Stats powered by MyPagerank.Net