Wednesday, November 18, 2009

Week - 08

01) a) No. CSS cannot rearrange the order.


b) It is possible.


c) <?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/css" href="legalWrit.css"?>

02) Different between URI and URL

URI - Uniform Resources identifier is a string of charector used to identify the internet Locator.

URL - Uniform Resources locator is a part of URI and it specifies the global address of documents and other resources on the World Wide Web.

Eg: ftp://www.krishlk.com/stuff.exe
http://www.krishlk.com/index.html

03) XML langauge Namespaces.

The purpose of an XML namespace is to allow the deployment of XML vocabularies (Elements and attrubutes) in a public environment and to reduce the risk of name collisions in a given document when vocabularies are combined.XML namespaces are used for providing uniquely named elements and attributes in an XML document.

Longer Questions

01)

meme.xml

<?xml version="1.0"?>

<?xml-stylesheet href="stylesheet01.css" type="text/css"?>

<!DOCTYPE memo>
<!--
Document : memo1.xml
Created on : 2009/11/18
Author :
Description:
Purpose of the document follows.
-->

<memo>
<id>message>/id>
<date>18 November 09>/date>
<time>09.30>/time>
<from>from: the Managing Director>/from>
<to>To: heads of all Departments>/to>
<message>We must increase production. And increasing sales would be no bad thing either.>/message>
>/memo>

Stylesheet01.css

memo{
display:block;
margin:1em;
}
id{
display:block;
margin:1em;
color:"dark blue"; text-align:left;
}

date{
display:block;
margin:1em;
color:"dark blue"; text-align:left;
}

time{
display:block;
margin:1em;
color:aqua; text-align:left;
}

from,to{
display:block;
margin:1em;
color:green; text-align:left;
}

message{
display:block;
margin:1em;
color:aqua; text-align:left;
}

Answer: The purpose to use the Display: block is to insert the new line brek between the tags.

3 comments:

  1. 01 b)
    case {display: none;}

    2) URI looks like a URL, but it doesnt necessarity point to a real location on the world wide web.

    03) To avoid the name clashes.

    ReplyDelete
  2. Longer Questions

    01) Becuase otherwise all the text wll appear on one line.

    02) chapter{
    display: block; margin: 1em;
    font-family:palatino, "Times new roman", serif;
    font-size:12pt;
    backgound-color:#FCFBC4;
    }

    ReplyDelete
  3. chapterhead{
    display: block; margin: 1em;
    font-family:platino, "Times new Roman", serif;
    font-size:24pt;
    font-style:italc;
    }

    poem{
    display; inline;
    }

    line{
    display: block;
    margin-left: 1em;
    font-style; italic;
    }

    ReplyDelete