HTML Online Tutorial Contents

Following are the posts for HTML online Tutorial. To learn everything about HTML, just read these posts: HTML Online Tutorial HTML TAGS (2) HTML BASICS (3) HTML ELEMENTS (4) HTML ATTRIBUTES (5) More »

XHTML

XHTML stands for Extensible Hypertext Markup Language. It is also known as XML (Extensible Markup Language). It is a markup language. In XHTML, there are no predefined tags. The user defines the More »

HTML SUMMARY

In this tutorial, you learned: HTML Introduction HTML Tags HTML Basics HTML Elements HTML Attributes HTML Paragraphs HTML Headings HTML Formats HTML Image HTML Links HTML Lists HTML Frames HTML Table After More »

HTML TABLES (13)

HTML Tables are used to arrange data in web pages. HTML allows the use of tables by <table>…</table> tags. Each row in HTML table is recognized by <tr>…</tr> tag. In each row More »

HTML FRAMES (12.2)

Nested frames example: For the following example to work, there are two other simple HTML files : “HMTL11e1 frame a.html” and “HMTL11e1 frame b.html”. your browser will divide your screeub half. The More »

 

Category Archives: XHTML

How XML is used?

How XML is used?

In this post, we will explain the ways in which XHTML can be used and is proved fruitful. Though it is used basically for web development but mostly it is used to simplify data storage and sharing.

XML is used to separate data from HTML

If you are writing an HTML document with data in it and after sometime you might have to change the data, then you have to re write the code with new data in it or edit the original HMTL document. It will be time consuming task for you to edit the code each time you want to edit the data. To solve this issue we use XML. It can store the data in separate files. So that you can change the layout and display by using HTML and the data by using XML files. But what if you need to update the content of the web page, then you will have to use JavaScript code to read an external XML file.

XML is used to simplify the data and data transport

Think if you have to transmit the data from one system or database to another, the first issue that you will encounter is that the data on both systems or database is incompatible. XML is used to solve this issue. XML basically stores the data in simple plain text format. In this way the software or hardware does not have to worry about the way data is stored. The software and hardware is not depending on the stored data format. In this way, you can create the data which you can then share between different applications.

Now, how to transport the stored data has been a challenge for the web developers between these incompatible systems or databases. But if you exchange the data in XML files then the data can be read by any system or data base. Thus, XML has reduced the complexity of the data exchange over the internet.

XML can also be used to simplify the process of making changes in your hardware or software platforms

What if you need to upgrade to new hardware or software platforms. You would have to convert the large amount of data into new format or you could lose the data. By using XML you can store the data in simple text format. So that you do not have to convert the data from one format to another while upgrading the platforms, applications and browsers etc.

Through XML data is more accessible

If you store the data in separate XML file as a plain text, then many applications can access your data from both HTML document or XML files that you have created.  In other words, the data can be accessible from many devices like computer, voice machines, mobiles etc. It can also provide access to disable people or blind persons.

XML can be used to create new internet languages

Languages like XHTML, WAP & WML (markup languages for handheld devices)  and RSS etc are created using XML.

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

Book a free consultation today!

email
Slide2

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:

<note>
<to>friend</to>
from>me</from>
<heading>xml example</heading>
<body>I am a text of example email written in xml</body>
</note>

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!

What is XHTML and its advantages?

What is XHTML and its advantages?

XHTML stands for Extensible Hypertext Markup Language. It is also known as XML (Extensible Markup Language). It is recommended by World Wide Consortium (W3C). It is a markup language. In XHTML, there are no predefined tags. The user defines the tags to be used. These tags are used to carry data. In short XHTML was designed to carry data not to display data.

The difference between HTML and XML is that:

  • XML is basically designed to store information in structured format and transport it. It does not perform any function on information except storing it.
  • HTML was designed to display any stored information, it focuses on the layout of information.

ADVANTAGES OF XHTML:

Following are some advantages of XHTML:

  • XHTML is used as a compliment to HTML. With HTML, XHTML is used to transport data and display it efficiently.
  • XHTML is easy to understand and use.
  • XHTML allows user to define its own tags so that data can be stored according to user’s defined structure.

There is more information about XHTML coming up on this site very soon.