ผมใช้ doctype ตามด้านล่าง
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
แล้วไม่สามารถใช้ attribute class ในการจัดตัวอักษรได้ เช่น <span class="xxxx">abcdef</span> คือรันแล้วไม่แสดงผลตาม class ที่เราสร้างไว้
แต่ถ้าใช้ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
จะสามารถใช้ได้
ใช้ Doctype บางประเภทแล้วใช้ attribute class ในการจัดตัวอักษรไม่ได้
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
แล้วไม่สามารถใช้ attribute class ในการจัดตัวอักษรได้ เช่น <span class="xxxx">abcdef</span> คือรันแล้วไม่แสดงผลตาม class ที่เราสร้างไว้
แต่ถ้าใช้ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
จะสามารถใช้ได้