Features of XHTML


We have concluded some of the significant features of XHTML in this post. So that you can understand it better.

XML is to structure, store and transport:

XHTML basically does not do anything . It is only used to structure, store and transport information. Consider an example of sending an email to your friend. In XML the text of your email should be like this:

<heading>xml example</heading>
<body>I am a text of example email written in xml</body>

The person you are sending your email is written inside <to> ../<to> tags. The from tag has you name in it. The subject of your email is mentioned in heading tags. Similarly, the actual body of your email is written in the body tags.

You should know that these tags will not do anything by themselves. You still have to develop a code which will send, receive and display this information to your friend. i.e. which will pick the header information and send it to your fiend so that it will appear in the subject field on his end

You need to invent your tags:

In XHTML, you have to define your own tags, there are no predefined. For example, the tags which are mentioned in above example, like to, from, header and body are not defined in XML standards. But on the other hand, the tags which you used in HTML are predefined. Even then you can only create a HTML document with only those tags which are defined in HTML standards like the <p> tag used to create a paragraph in HTML. All in all, you can not only define your own tags in  xml but also can create your very own document structure.

Is XHTML replacing HTML?

NO, XHTML is not considered as a replacement to HTML. In fact, XHTML complements HTML. As described in earlier post (HTML BASICS), HTML is used to format the data and then display it, while XHTML is used to transport data.

In the beginning, HTML was considered as extremely important, but now XHMTL has become as important as XHTML. Because it is now used as a mode of transmission between applications.

In this post you have understood some significant features of XHMTL. In the next post, we will explain the ways in which XHTML is used.

To get a mobile app for your business visit www.codescamp.com

Book a free consultation today!


6 Responses to Features of XHTML

  1. I just want to mention I’m beginner to blogging and really savored you’re page. Likely I’m planning to bookmark your site . You really come with good well written articles. Kudos for revealing your blog site.

  2. Digg

    While checking out DIGG yesterday I noticed this

  3. je’ Decouvrir ce magnifique site

  4. Susana Stoff says:

    Hey there are using WordPress for your blog platform? I’m new to the blog world but I’m trying to get started and set up my own. Do you require any coding expertise to make your own blog? Any help would be greatly appreciated!

    • admin says:

      Yes to adjust some gadgets or format the theme according to your own tast you need to learn the programming for example the theme you select has great layout but you want to change the color of an item of the theme that cant be changed through theme settings than you have to edit the code or for example you don’t like the font style or size of any item which cant be changed via settings you need to change it in the theme code. You can only change the code if you understand it first. Good Luck :)

  5. Hello There. I found your blog using msn. This is a really well written article. I¡¯ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I¡¯ll definitely comeback.

Leave a Reply