Pages

Wednesday, April 14, 2010

Exercises Topic5: eXtensible Mark-up Language


Topic5: eXtensible Mark-up Language
XML (Extensible Markup Language) is a set of rules for encoding documents electronically. It is markup language like HTML. It was mainly design to carry the data. The tags of XML are not be defined. You have to define by own.
Difference between XML and HTML

  • XML was designed to transport and store data, with focus on what data is.
· HTML was designed to display data, with focus on how data looks.
Attributes
· Provide extra information about elements.
· Placed inside the starting tag of an element.
· Always come in name/value pairs.
· Example dog ID attribute
GrisWald

Entities
The following entities are predefined in XML:
Entity Character
< <
> >
& &
" “

HTML



HTML, which stands for HyperText Markup Language, is the predominant markup language for web pages.



Basic Format



Now we are able to start learning about HTML tags. An HTML tag will always begin with a "less than" sign, like this: <. The tags will end with a "greater than" sign, like this: >. An example would be the tag used to underline text, <u>. You would place this before the text you want to underline. This is called an opening tag, which begins the operation you wish to perform. In order to end the underlining, you must use a closing tag. A closing tag will be the same as the opening tag, but will have a forward slash before the command, like this: </u>. So, if you would like to underline the phrase "HTML Rules!", you would write the following in your text editor:

<u>HTML Rules!</u>

The result of this would be:

HTML Rules!

Reference

Ince, D. (2004). Developing distributed and e-commerce applications (2nd ed.). Harlow,Essex, UK: Addison-Wesley.

3 comments:

  1. Wonderful difference between XML and HTML!!!i learnt from you a lot!!!@

    ReplyDelete
  2. XML is very common used but we still need HTML, can you put something about HTML?

    ReplyDelete
  3. @ Dong: As per your Comment i put some information regarding HTML. check it.i think its helps you!!!

    ReplyDelete