Web Development: HTML, XHTML, CSS

3:14:00 PM |


Now that your song’s information is properly grouped, it’s easy to expand this document
to include other songs. For instance, you might want to have a document with information that
encodes one of your favorite mixes. You can duplicate your single song markup and simply change
 the information held in the child elements for the different songs, as shown here:
<song>
<title>Where the Streets Have No Name</title>
<artist>U2</artist>
<album>The Joshua Tree</album>
<released>1987</released>
</song>
<song>
<title>Hungry Like the Wolf</title>
<artist>Duran Duran</artist>
<album>Rio</album>
<released>1982</released>
</song>
<song>
<title>More Than a Feeling</title>
<artist>Boston</artist>
<album>Boston</album>
<released>1986</released>
</song>
<song>
<title>Dream On</title>
<artist>Aerosmith</artist>
<album>Aerosmith</album>
<released>1973</released>
</song>
This isn’t right quite yet, because all you have now is a bunch of individual songs, not
a playlist for your mix. You still need to group these songs together in some way. Let’s
use a  <playlist> element for that purpose:

0 comments: