Week-4
Write a XML file which will display the Book information which includes the following.
Title of the book, Author Name, ISBN number, Publisher name, Edition, Price
i. Write a Document Type Definition (DTD) to validate the above XML file.
ii. Write a XSD to validate the above XML file.
Filename: book.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE library SYSTEM "book.dtd">
<catalog>
<book id="001">
<title>Harry Potter and the Philosopher's Stone</title>
<author>J.K. Rowling</author>
<year>1997</year>
<price>20.00</price>
</book>
<book id="002">
<title>The Great Gatsby</title>
<author>F. Scott Fitzgerald</author>
<year>1925</year>
<price>15.50</price>
</book>
</catalog>
(i) Filename: book.dtd
<!DOCTYPE catalog [
<!ELEMENT catalog (book+)>
<!ELEMENT book (title, author, year, price)>
<!ATTLIST book id CDATA #REQUIRED>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT price (#PCDATA)>
]>
(ii) Filename: book.xsd
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="catalog">
<xs:complexType>
<xs:sequence>
<xs:element name="book" type="bookType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="bookType">
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="year" type="xs:integer"/>
<xs:element name="price" type="xs:decimal"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>
Basic HTML Programs
1. Create and test an HTML document for yourself, including yourname, address, and electronic
mail address. This document must use several headings and <em>, <strong>, <hr />, <p>, and
<br /> tags and other basic formatting tags.
2. Write a HTML program for the demonstration of Lists.
a. Unordered List
b. Ordered List
c. Definition List
d. Nested List
3. Write a HTML program for demonstrating Hyperlinks.
a. Navigation from one page to another.
b. Navigation within the page.
c. Navigation from one window to other window
4. Write a HTML program for displaying your class time-table usingtables.
5. Write an HTML code to display your education details in a tabular format.
6. Write a HTML program to develop a Registration Form.
7. Write a HTML program to develop a Login Page.
8. Write an HTML code to create your Institute website, Department Website and Tutorial
website for specific subject.
9. Write a HTML program to develop our college web site using frames.
10. Write HTML for demonstration of cascading style sheets.
a. Embedded style sheets.
b. External style sheets.
c. Inline styles.