Pages

Ads 468x60px

Terima kasih di atas sokongan (*^_^*)

Klik-klik Nuffnang Ads

Thursday, April 26, 2007

HTML, XML dan XHTML

HTML
In computing, HyperText Markup Language (HTML) is a predominant markup language for the creation of web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. According to HTML standards, each HTML document requires a document type declaration. The "DOCTYPE" begins the HTML document and tells a validator which version of HTML to use in checking the document's syntax. HTML templates can begin with this line :

(sebelum tu kan, nak habak, di depan dan di belakang setiap coding ini ada tanda < dan > aku tak taip di sini sebab nanti dia tak keluar apa2 langsung)

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"

or this line :

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"

Then came XML.

Extensible Markup Language (XML) is a W3C-recommended general-purpose markup language that supports a wide variety of applications. XML is a simplified subset of Standard Generalized Markup Language (SGML). Its primary purpose is to facilitate the sharing of data across different information systems, particularly systems connected via the Internet. The first line in a XML template for beta blogger is :

?xml version="1.0" encoding="UTF-8" ?

And Finally XHTML.
XHTML is the next generation of HTML and is a hybrid between HTML and XML. XML was designed to describe data. HTML was designed to display data. XHTML is much stricter than HTML. Not all browers support XML so XHTML provides an intermediary soluton and can be interpreted by XML and HTML browsers. XHTML templates begin with this line :

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

Sumber: http://betabloggerfordummies.blogspot.com/2006/11/what-is-xml-xhtml.html

La ni baru lah aku paham pasal sebab hari tu aku try jugak template XML tapi ada jugak blogger yang tak boleh baca blog aku. Bila aku check balik template yang Caz buat itu pun dah XHTML. May be ada problem somewhere. Browser, Windows Version etc.

How I wish... dapat pi belajaq XML dan XHTML.
Banyak dah yang aku pi belajaq tapi yang aku dok guna so far HTML ajelah. PHP aku belajar jugak tapi sebab tak pernah practise aku dah lupa.. aku ni kan mudah lupa... HTML tupun tak lama lagi lupa la sebab free template banyak, lagi senang dan tak payah dok pikiag-pikiag nak buat coding la apa la...

No comments:

Post a Comment