Friday, 1 February 2013

Learn HTML

How to create HTML files:
You only need to know a few HTML commands (tags) to create files to "put up" on the Web. It's nice to know that these files can be created with Microsoft Word® or any other word processing program for that matter. The only catch is that you must save them as text files and give them an HTML (or HTM for PC computers) extension (i.e., aatg.html or aatg.htm). The .html or .htm extension tells your web browser that these are documents created for the Web.
Necessary HTML Tags
(note that upper-case/lower-case is not important)
The "guts" of every HTML file must look like this:
<html>
<head>
<title>Document's name which appears in the heading, not on the page</title>
</head>
<body>Type in the information you want to appear on the page here
</body>
</html>
Within the <body> tag (command), you may use other HTML tags to add images and/or sounds, link your page to other pages (URLs) on the Web, highlight your text by bolding or italicizing it, or change font size. Note that all tags must be invoked by typing the tag between two brackets (i.e., <body>). Type the tag in brackets again with a slash in front of if (i.e., </body>) to negate the effect.
Basic HTML commands
(to use within the <body> of the file):

<p>text you type in</p>
Creates paragraphs (one space between lines is created)

<i>text you type in</i>
Italicizes text between commands

<b>text you type in</b>
Bolds text between commands

<blockquote>text you type in </blockquote>
Puts text you're quoting into web document--text will be indented

<pre>text you type in</pre>
Retains format/indentation of text entered

<strong>text you type in</strong>
Also bolds text between tags

<center>text you type in</center>
Centers text between commands

<blink>text you type in</blink>
Text between commands flashes

<font size=7>text</font>
Changes size of text--7 is biggest font available and 1 is the smallest (single-spaced)

<h1>

text you type in

</h1>
Text appears in biggest font available (double-spaced)

<h6>
text you type in
</h6>
Text appears in smallest font available

There are <h2> through <h5> tags available for font sizes between <h1> and <h6>--experiment with the sizes that work best for you.
<body bgcolor="#FFFFFF">
To create background colors/patterns
There are web sites where you can find the code (e.g., #FF0000=red) for background/text colors: Backgrounds
<body background="small.gif">
There are many web sites with background images (e.g., "small.gif") free for the taking. Three of my favorites can be found at:
Background Images I
Background Images II
Background Images IIIAs URLs are frequently updated/changed, check these addresses periodically to make sure they still exist!
You can also copy a background image that you see used on a web page--but only if you are using a PC (you press down on the right side of the mouse and save the background image in the appropriate place!).
<body text="#FF0000">
This will change the color of all text in the document to red
<font color="#FF00FF">
This will change the color of what you type here to magenta</font>

Creating ListsUNORDERED LIST
<ul>
<li>This is the tag for creating an unordered list
<li>Each thing you type after the <li> tag will appear next to a bullet on the web page
<li>This text will appear next to the third bullet--bullets are indented
</ul>
ORDERED LIST
<ol>
<li>This is the tag for creating an ordered list
<li>Each thing you type after the <li> tag will appear next to a number on the web page
<li>This text will appear next to the number "3" on the web page
</ol>
DESCRIPTIVE LIST (useful for creating bibliographies, for instance)
<dl>
<dt>Tag for creating the first title of your descriptive list
<dd>This is the first item under the first title of the list--it will be indented
<dd>Another item in the list under the same title--it will also be indented
<dt>This is the second title in your descriptive list
<dd>This is the first indented item under the second title in your descriptive list
</dl>
Note that you may "nest" lists -- i.e., create an unordered list within an ordered list, etc.

Creating Tables
You may find it useful to include tables on your web page. Below are a few very basic tags for creating tables.
<table border>This is the tag for creating a table
<tr>This is the tag for a table row
<td>This is the tag for a cell (box) within a row</td>
<td>You may want to have two or more cells in each table row.</td></tr>
<tr>This is the tag for the second table row
<td>This is the tag for the first cell (box) in the second row</td>
<td>This is the second cell (box) in the second row</td>
</tr> </table>
Other HTML tags can be used within each cell to format your text. At some point you might want to have more control over the border or spacing of your tables. See one of the numerous tutorials on the Web. Do a search and enter the key words "HTML tutorial."
<hr> Puts a "shadow" line on the web page


<br>Type at end of a line to initiate line break (i.e., this is like a carriage return)
Note that there are no "end" tags (i.e., no </hr> or </br>) with these tags.

Creating Links
<a href="http://www.aatg.org">AATG Homepage</a>
Type a URL or file to which you wish to link between the quotes! In this example "AATG Homepage" will appear in blue or in another color on the web page, thus signifying that there is a hypermedia link here!
Example: <a href="http://www.mtholyoke.edu">Mount Holyoke College</a>
The text which will appear in blue on the web page is: "Mount Holyoke College"
If you click on it, you will automatically be sent to Mount Holyoke's homepage!
To create a link to an E-mail address:
<a href="mailto: dvanhand@mhc.mtholyoke.edu">Donna Van Handle</a>
(If you click on Donna Van Handle, an E-mail form pops up)

IMAGES

<img src="logo.gif">
Typing the tag above will put an image called "logo.gif" on your web page. You have either created the image yourself or copied it from a page on the Web (more on this below). By the way: GIF stands for "Graphics Interchange Format" and JPEG stands for "Joint Photography Exchange Group."
You can copy images you see on other web pages by placing the mouse on the image and pressing down. A box with various options, one of which is saving the image, will pop up on the screen. Save it as a file and you can then incorporate it (the image) into your own HTML file! There are also many icon/image sites on the Web. 
If you are unable to find an image here (including animated gifs!), then you should do a search on the Web to access countless additional sites where nice people have collected images for you to use on your web pages! Be sure to give the necessary credit to the person who created the image (this is certainly the polite thing to do--> netiquette!).
By the way: you may also view other people's HTML code by accessing "document source" under "view" on the browser menu You can then highlight, copy, and paste code into your own HTML file so that your page will do the same neat things that someone else's does.
To center an image on your web page (without accompanying text):
<center><img src="logo.gif"></center>
If you wish to align text with images or graphics on your web page (see above example with MHC image!), there are several tags you may use:
<font size=2>Your text goes here</font><img src="logo.gif" align=right>
You can substitute top, bottom, left or middle for right, and your text and image will be displayed accordingly. Note that some of your text may be displaced depending on the size of the font or image you have chosen.

Sound Files
You can also link sound files to your web page. You can either record your own sound file (using a program like SoundEdit®--see example 1), or link to a sound file at another web site (see example 2).
Example 1: This is a <a href="willkommen.au"> greeting</a> in German!
Example 2: Another <a href="http://www.dfki.uni-sb.de/imedia/herzog/noise/willkommen.au"> German greeting!</a>


Foreign Characters
You'll need to type in a special HTML code to generate German characters. For instance, if you want können to appear on the web page, you have to type the word (within an HTML file) like this--> k&#246;nnen
The character set codes for German are:
Ä = &Auml; (OR&#196;)
ä = &auml; (OR &#228;)
Ö = &Ouml; (OR &#214;)
ö = &ouml; (OR &#246;)
Ü = &Uuml; (OR &#220;)
ü = &uuml; (OR &#252;)
ß = &szlig; (OR &#223;)
As mentioned before, after you've generated your HTML file, save it as a text only file and give it a name like "aatg.html" (if you're using a Macintosh) or "aatg.htm" (if you're using a PC). DON'T FORGET THE HTML or HTM EXTENSION! Now you're ready to put your file(s) on the Web!!! There are different protocols for doing this. Check with your Internet service provider or with the technology specialist at your school.
The HTML tags I've described here are REALLY the most basic and important ones you need to know right now. Anything more fancy you need to do can probably be done in HTML. For a more comprehensive overview of HTML (including the fancy stuff), do a search to find one of the many tutorials on the Web. 

Advanced Features: Frames and Forms
FRAMES:If you want to "divide" a web page into "sections" or windows, some of which will remain permanently in place and others that are linked to other HTML files or sites on the Web, you will have to learn how to create frames. Let's look at a sample HTML file which will generate frames:
<html>
<head>
<title>Practice with Frames</title>
</head>
<frameset rows= "30%, 70%">
<frame src= "frames2.html">
<frameset cols="30%, 70%">
<frame src= "frames1.html">
<frame src= "homepage.html" name="window1">
</frameset></frameset>
</html>
Above is the code for an HTML file I have named "frames.html." Embedded in the file "frames.html" (which is the name of the entire web page), you can see that there are two HTML files (called "frames1.html" and "frames2.html"). One of the frames (windows) is linked to a file called "homepage.html." This means that "homepage.html" will appear in the frame I have named "window1." It may be easier if you see a graphic display of this page:

frames2.html
f
r
a
m
e
s1.
h
t
m
l
This is called "window1"
Here you see that the web page is divided into three different sections--there are two frames, each of which is a separate HTML file ("frames1.html" and "frames2.html"); "window1" is the name I have given to the frame where the targeted URL will appear. This web page is also divided into 2 rows (row 1 is where "frames2.html" resides; row 2 is where "frames1.html" and "window1" reside).There are also two columns in row 2. In column 1 we find "frames1.html" and in column 2 we find "window1." The 1st row represents 30% of the page and the 2nd row represents 70% of the page--thus, we have the tag <frameset rows="30%, 70%"> in the HTML code for the file "frames.html." The 1st column (in row 2) represents 30% of the page and the 2nd column (in row 2) represents 70% of the page--thus, we have the tag <frameset cols="30%, 70%"> in the HTML code for the file (page) "frames.html." Although I have chosen to divide the page this way, you can use other percentages (40%, 60% OR 50%, 50%, etc.) depending on how you want the page to look and how big you want your rows and columns to be.
The HTML files ("frames1.html," "frames2.html" and "homepage.html") can contain any HTML tags you wish. The nice thing about using frames is that you can keep the same text in one or two of the frames and have the contents of the third frame (in this example: "window1") change.
Let me explain how I used frames to create a web page to display my class web sites. In the HTML file I've called "frames2.html," I will keep the same text year after year. The text I have put in this file is: Deutschkurse im Netz. In the HTML file I have called "frames1.html," I listed the titles of my class web sites. What I have done is to link the names of the courses listed in "frames1.html" to the course web site--i.e., when I click on Deutsch 103, which is listed in "frames1.html," the course web site automatically appears in "window1." Let's take a look at the source code for "frames1.html" so that you can see what I did:
<html>
<head>
<title>frames1.html</title>
</head>
<body bgcolor="FF00FF">
<h3><ul>
<li><a href="http://www.mtholyoke.edu/acad/germ/courses/german103/germ103.html" target= "window1">Deutsch103</a>
<p></p>
<li><a href="http://www.mtholyoke.edu/acad/germ/courses/german209/dvhj12.html" target= "window1">Deutsch 209</a>
</body>
</html>
In "frames1.html" two of my class web sites are listed: Deutsch 103 and Deutsch 209. If you click Deutsch 103, "homepage.html" will disappear and the web site for that course (i.e., the URL listed previously) will pop up in "window1." If you then click on Deutsch 209, the web site for that course will pop up in "window1." That's all there is to FRAMES! If you have a good use for them, frames can be a life saver! You can also use frames to add some interactivity to your web site--i.e., you can have a question appear in one frame, then the answer in another frame. Remember that you can only display frames if you are using Netscape 2.0®or higher!

Thursday, 4 August 2011

The Ranking Genius



~ Contents ~


01 Intro 4.56 MB

02 Keyword Research 124.72 MB

03 Domain Selection 82.43 MB

04 Content Creation 23.2 MB

05 Blog & Theme Installation 35.99 MB

06 Important Plug-ins 80.159 MB

07 On Page Optimization 104 MB

08 Backlinking Techniques 171.58 MB

09 Conclusion 12.98 MB

Bonus 1 - Backlinking Blueprint

Bonus 2 - Backlinking Schedule

Bonus 3 - Resource File
Total Size: 503 MB (All files are in perfect working condition)

Get the complete package here:

Monday, 1 August 2011

Part 6 - CSS & XSLT | XML

With CSS (Cascading Style Sheets) you can add display information to an XML document.

  Displaying your XML Files with CSS?

It is possible to use CSS to format an XML document.
Below is an example of how to use a CSS style sheet to format an XML document:
Take a look at this XML file: The CD catalog
Then look at this style sheet: The CSS file
Finally, view: The CD catalog formatted with the CSS file
Below is a fraction of the XML file. The second line links the XML file to the CSS file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/css" href="/cd_catalog.css"?>
<CATALOG>
  <CD>
    <TITLE>Empire Burlesque</TITLE>
    <ARTIST>Bob Dylan</ARTIST>
    <COUNTRY>USA</COUNTRY>
    <COMPANY>Columbia</COMPANY>
    <PRICE>10.90</PRICE>
    <YEAR>1985</YEAR>
  </CD>
  <CD>
    <TITLE>Hide your heart</TITLE>
    <ARTIST>Bonnie Tyler</ARTIST>
    <COUNTRY>UK</COUNTRY>
    <COMPANY>CBS Records</COMPANY>
    <PRICE>9.90</PRICE>
    <YEAR>1988</YEAR>
  </CD>
</CATALOG>
Formatting XML with CSS is not the most common method.

  Displaying XML with XSLT

XSLT is the recommended style sheet language of XML.
XSLT (eXtensible Stylesheet Language Transformations) is far more sophisticated than CSS.
One way to use XSLT is to transform XML into HTML before it is displayed by the browser as demonstrated in these examples:
View the XML file, the XSLT style sheet, and View the result.
Below is a fraction of the XML file. The second line links the XML file to the XSLT file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="/simple.xsl"?>
<breakfast_menu>
  <food>
    <name>Belgian Waffles</name>
    <price>$5.95</price>
    <description>two of our famous Belgian Waffles</description>
    <calories>650</calories>
  </food>
</breakfast_menu>
If you want to learn more about XSLT, find our XSLT tutorial on w3schools homepage.

  Transforming XML with XSLT on the Server

In the example above, the XSLT transformation is done by the browser, when the browser reads the XML file.
Note that the result of the output is exactly the same, either the transformation is done by the web server or by the web browser.

Part 5 - Validation & Viewing | XML

XML with correct syntax is "Well Formed" XML.
XML validated against a DTD is "Valid" XML.

  Well Formed XML Documents

A "Well Formed" XML document has correct XML syntax.
The syntax rules were described in the previous chapters:
  • XML documents must have a root element
  • XML elements must have a closing tag
  • XML tags are case sensitive
  • XML elements must be properly nested
  • XML attribute values must be quoted
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>


  Valid XML Documents

A "Valid" XML document is a "Well Formed" XML document, which also conforms to the rules of a Document Type Definition (DTD):
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE note SYSTEM "Note.dtd">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
The DOCTYPE declaration in the example above, is a reference to an external DTD file. The content of the file is shown in the paragraph below.

  XML DTD

The purpose of a DTD is to define the structure of an XML document. It defines the structure with a list of legal elements:
<!DOCTYPE note
[
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
If you want to study DTD, you will find our DTD tutorial on w3schools homepage.

  XML Schema

<xs:element name="note">

<xs:complexType>
  <xs:sequence>
    <xs:element name="to" type="xs:string"/>
    <xs:element name="from" type="xs:string"/>
    <xs:element name="heading" type="xs:string"/>
    <xs:element name="body" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

</xs:element>

  A General XML Validator

To help you check the syntax of your XML files, we have created an XML validator to syntax-check your XML.

  XML Viewers

If you are attempting to use XML for the first time, chances are you don't know or have the tools that are necessary to view XML files. The good news is there are a plethora of free viewers readily available to you. This lesson will show the many free XML viewers that are currently out there.

  Free XML Viewer

Chances are the web browser you have on your computer is XML ready. If you would like to see how your browser handles XML files, open up our XML File: class_list.xml. If your browser doesn't let you view that XML file, then read on as we describe the popular browsers and their XML viewing features.

  Internet Explorer XML Viewer

Internet Explorer 6.0 supports viewing XML files. You can download IE 6.0 from Microsoft's Website. Internet Explorer 6.0 has special color coding the make XML documents easier to read. Also, next to expandable elements (those that contains child elements) there is a plus or minus sign (+/-) that lets you expand or contract that element.
After you have installed Internet Explorer 6.0, try viewing our XML file: class_list.xml.

  Firefox XML Viewer

Firefox has some of the same features as Internet Explorer. You can download Mozilla's Firefox from Mozilla.com.
After you have installed Internet Explorer 6.0, try viewing our XML file: class_list.xml

  Opera XML Viewer

Unfortunately, Opera does not currently support viewing XML files, so please download one of the browsers we have listed above. If you would like to see what XML looks like in Opera, open our XML file: class_list.xml.
If you are looking for an XML editor, check out our next lesson, in which we recommend an XML editor based on your needs and budget!

Part 4 - Elements&Attributes | XML

  XML Element

XML is a markup language that is used to store data in a self-explanatory manner. Making the data "self-explanatory" comes about by containing information in elements. If a piece of text is a title then it will be contained within a "title" element.

  XML Tag

A tag is just a generic name for a <element>. An opening tag looks like <element>, while a closing tag has a slash that is placed before the element's name: </element>. From now on we will refer to the opening or closing of an element as open or close tags. All information that belongs to an element must be contained between the opening and closing tags of an element.

  XML Attribute

Attributes are used to specify additional information about the element. It may help to think of attributes as a means of specializing generic elements to fit your needs. An attribute for an element appears within the opening tag.
If there are multiple values an attribute may have, then the value of the attribute must be specified. For example, if a tag had a color attribute then the value would be: red, blue, green, etc. The syntax for including an attribute in an element is:
  • <element attributeName="value">
In this example we will be using a madeup XML element named "friend" that has an optional attribute age.

  XML Code:

<friend age="23">Samantha</friend>

  Element Review

  • Elements are used to classify data in an XML document so that the data becomes "self-explanatory".
  • Opening and closing tags represent the start and end of an element.
  • Attributes are used to include additional information on top of the data that falls between the opening and closing tag.

  XPath - Attribute

You have already learned how to select any element in an XML document, but how would you get that element's attribute? Those attributes values are within your reach once you learn how to use @ !

  XML Code (Example)

<inventory>
 <drink>
<lemonade supplier="mother" id="1">
<price>$2.50</price>
<amount>20</amount>
</lemonade>
<pop supplier="store" id="2">
<price>$1.50</price>
<amount>10</amount>
</pop>
</drink>
<snack>
<chips supplier="store" id="3">
<price>$4.50</price>
<amount>60</amount>
<calories>180</calories>
</chips>
</snack>
</inventory>

  XPath - @ is for Attribute!

After you have figured out how to select an element in your XML document, just take it one step further to get the attribute.
At the end of your XPath expression, which is normally the element you want to select, add the at sign "@" plus the name of the attribute you wish to select. The following XPath expression selects chips element.

  XPath Expression:

inventory/snack/chips
If we wanted to select the supplier attribute of chips, we would add "@supplier" to our expression.

  XPath Expression:

inventory/snack/chips@supplier
If we wanted to select the supplier attribute of pop, the XPath expression would have to be changed slightly.

  XPath Expression:

inventory/drink/pop@supplier

Part 3 - Syntax | XML

The syntax rules of XML are very simple and logical. The rules are easy to learn, and easy to use.

XML  All XML Elements Must Have a Closing Tag

In HTML, you will often see elements that don't have a closing tag:
<p>This is a paragraph
<p>This is another paragraph
In XML, it is illegal to omit the closing tag. All elements must have a closing tag:
<p>This is a paragraph</p>
<p>This is another paragraph</p>
Note: You might have noticed from the previous example that the XML declaration did not have a closing tag. This is not an error. The declaration is not a part of the XML document itself, and it has no closing tag.

XML  XML Tags are Case Sensitive

XML elements are defined using XML tags.
XML tags are case sensitive. With XML, the tag <Letter> is different from the tag <letter>.
Opening and closing tags must be written with the same case:
<Message>This is incorrect</message>
<message>This is correct</message>
Note: "Opening and closing tags" are often referred to as "Start and end tags". Use whatever you prefer. It is exactly the same thing.

XML  XML Elements Must be Properly Nested

In HTML, you might see improperly nested elements:
<b><i>This text is bold and italic</b></i>
In XML, all elements must be properly nested within each other:
<b><i>This text is bold and italic</i></b>
In the example above, "Properly nested" simply means that since the <i> element is opened inside the <b> element, it must be closed inside the <b> element.

XML  XML Documents Must Have a Root Element

XML documents must contain one element that is the parent of all other elements. This element is called the root element.
<root>
  <child>
    <subchild>.....</subchild>
  </child>
</root>


XML  XML Attribute Values Must be Quoted

XML elements can have attributes in name/value pairs just like in HTML.
In XML the attribute value must always be quoted. Study the two XML documents below. The first one is incorrect, the second is correct:
<note date=12/11/2007>
  <to>Tove</to>
  <from>Jani</from>
</note>

<note date="12/11/2007">
  <to>Tove</to>
  <from>Jani</from>
</note>
The error in the first document is that the date attribute in the note element is not quoted.

XML  Entity References

Some characters have a special meaning in XML.
If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element.
This will generate an XML error:
<message>if salary < 1000 then</message>
To avoid this error, replace the "<" character with an entity reference:
<message>if salary < 1000 then</message>
There are 5 predefined entity references in XML:
< < less than
> > greater than
& & ampersand 
' ' apostrophe
" " quotation mark
Note: Only the characters "<" and "&" are strictly illegal in XML. The greater than character is legal, but it is a good habit to replace it.

XML  Comments in XML

The syntax for writing comments in XML is similar to that of HTML.
<!-- This is a comment -->

XML  White-space is Preserved in XML

HTML truncates multiple white-space characters to one single white-space:
HTML: Hello           my name is Tove
Output: Hello my name is Tove.
With XML, the white-space in a document is not truncated.

XML  XML Stores New Line as LF

In Windows applications, a new line is normally stored as a pair of characters: carriage return (CR) and line feed (LF). The character pair bears some resemblance to the typewriter actions of setting a new line. In Unix applications, a new line is normally stored as a LF character. Macintosh applications use only a CR character to store a new line.

Part 2 - Tree (Organisation) | XML

XML documents form a tree structure that starts at "the root" and branches to "the leaves".

  An Example XML Document

XML documents use a self-describing and simple syntax:
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
  <to>Tove</to>
  <from>Jani</from>
  <heading>Reminder</heading>
  <body>Don't forget me this weekend!</body>
</note>
The first line is the XML declaration. It defines the XML version (1.0) and the encoding used (ISO-8859-1 = Latin-1/West European character set).
The next line describes the root element of the document (like saying: "this document is a note"):
<note>
The next 4 lines describe 4 child elements of the root (to, from, heading, and body):
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>

And finally the last line defines the end of the root element:
</note>
You can assume, from this example, that the XML document contains a note to Tove from Jani.
Don't you agree that XML is pretty self-descriptive?

  XML Documents Form a Tree Structure

XML documents must contain a root element. This element is "the parent" of all other elements.
The elements in an XML document form a document tree. The tree starts at the root and branches to the lowest level of the tree.
All elements can have sub elements (child elements):
<root>
  <child>
    <subchild>.....</subchild>
  </child>
</root>
The terms parent, child, and sibling are used to describe the relationships between elements. Parent elements have children. Children on the same level are called siblings (brothers or sisters).
All elements can have text content and attributes (just like in HTML).

Example:

DOM node tree The image above represents one book in the XML below:
<bookstore>
  <book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
  </book>
  <book category="CHILDREN">
    <title lang="en">Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
  </book>
  <book category="WEB">
    <title lang="en">Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
  </book>
</bookstore>
The root element in the example is <bookstore>. All <book> elements in the document are contained within <bookstore>.
The <book> element has 4 children: <title>,< author>, <year>, <price>.
 

E-Learning Copyright © 2011 Powered by Blogger