Wednesday, 21 October 2009

Week 4

1.What does XML and CSS stand for?
Xml stand for Extensible Markup Language.
css stand for Cascading Style Sheets.

2.Is this XML line well-formed? say why?
<b><i>This text is bold and italic</b></i>

This is not well formed XML because the start and the end tags are not the same if you in see the above code the (b) is the outside tag,it should have also been the outer tag too at the end of the code.

3.Is the XML document well-formed?say why.
<?xml> version ="1.0"?>
<greeting>
hello world
</greeting>
<greeting>
hello mars too!
</greeting>

Yes this is well-formed XML the outer and inner tag are in the correct order. but is missing root tagoth tag are the same this might have other implication down the line why you try to implement the css to this code.unless you want both greeting to have the same style.

Part 2

<?xml version="1.0";>
<class_info;>
<course;> Advanced Web Technologies <course>
<Building;> Hatchcroft </Building>
<Room;>H104 <Room;>
<Start Time;> 9:30 </Start Time>
<End Time ;>12:30 < /End Time>
< Time Start="9:30" end="11:30" >
</class_info>

This code is desing using XML but blog will not allow me to show the code.

2

The bookstore tag do not close

<book category= "children'>
has two different end quotation mark
number between TAG
comment inside TAG

3
<! DOCTYPE memo
[
<!ELEMENT memo(to,from,heading,body,securityclass?)>
<!ELEMENT Securityclass (#PCDATA)>
<!ELEMENT memo serialnumber CDDATA REQUIRED>
]>

No comments:

Post a Comment