On Learn : XHTML

   Posted in On Learn     Email This Post Email This Post Print Print

Sebelum anda membaca ini, perlu diingat “Ini bukan tutorial” hanya sebuah catatan seorang newbie :D

What Is XHTML?

  • XHTML stands for EXtensible HyperText Markup Language
  • XHTML is aimed to replace HTML
  • XHTML is almost identical to HTML 4.01
  • XHTML is a stricter and cleaner version of HTML
  • XHTML is HTML defined as an XML application
  • XHTML is a W3C Recommendation

XML was designed to describe data and HTML was designed to display data. By combining HTML and XML, and their strengths, we got a markup language that is useful now and in the future - XHTML.

HTML vs XHTML

  • XHTML elements must be properly nested
  • XHTML elements must always be closed
  • XHTML elements must be in lowercase
  • XHTML documents must have one root element

XHTML syntax rules :

  • Attribute names must be in lower case
  • Attribute values must be quoted
  • Attribute minimization is forbidden

<input checked=”checked” />
<input readonly=”readonly” />
<input disabled=”disabled” />
<option selected=”selected” />

  • The id attribute replaces the name attribute
  • The XHTML DTD defines mandatory elements

All XHTML documents must have a DOCTYPE declaration. The html, head and body elements must be present, and the title must be present inside the head element.

XHTML 1.0 specifies three XML document types: Strict, Transitional, and Frameset.

XHTML Strict DTD

Use this DTD when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS).

XHTML Transitional DTD

Use this DTD when you need to use XHTML’s presentational features because your readers don’t have browsers that support Cascading Style Sheets (CSS).

XHTML Frameset DTD

Use this DTD when you want to use frames!

resource :

 http://www.w3schools.com/xhtml/default.a…

 http://www.w3.org/MarkUp/

TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post
 |  TrackBack URI for this post




You may Leave a comment or Subscribe to Comments RSS or Trackback this entry.

2 comments so far

  1. Shirei December 23, 2007 3:58 pm

    wah.. XHTML aku mau ngajar ini tgl 7 nanti. Lama ga megang. weheheh

    Nice tips.

    Btw iyah, yg tg traffic artikel di webku itu buatanku pas lg nganggur di kantor

    [Reply]

  2. spypark.reborn December 23, 2007 4:06 pm

    @shirei
    bukan tips tp catatan alias rangkuman doank … :D
    ngajar dimana nich ?? bisa ikut belajar donk … he he …

    [Reply]

Leave a comment

Please be polite and on topic. Your e-mail will never be published.


MasterWebNet


Calendar


Recent Post


Tags Cloud


Categories