Prog 5

5. Design an XML document to store information about a student in an engineering college affiliated to VTU. The information must include USN, Name, and Name of the College, Branch, Year of Joining, and email id. Make up sample data for 3 students. Create a CSS style sheet and use it to display the document.

program5.xml

<?xml-stylesheet type="text/css" href="5.css" ?> <!DOCTYPE HTML> <html> <head> <h1>  STUDENTS DESCRIPTION </h1> </head> <students> <student>   <USN>USN         :   1RN07CS001</USN>   <name>NAME       :   SANTHOSH</name>   <college>COLLEGE :   RNSIT</college>   <branch>BRANCH   :   Computer Science and Engineering</branch>   <year>YEAR       :   2007</year>   <e-mail>E-Mail   :   santosh@gmail.com</e-mail> </student> <student>    <USN>USN         :   1RN07IS001</USN>   <name>NAME       :   MANORANJAN</name>   <college>COLLEGE :   RNSIT</college>   <branch>BRANCH   :   Information Science and Engineering</branch>   <year>YEAR       :   2007</year>   <e-mail>E-Mail   :   manoranjan@gmail.com</e-mail> </student>  <student>    <USN>USN         :   1RN07EC001</USN>   <name>NAME       :   CHETHAN</name>   <college>COLLEGE :   RNSIT</college>
 <branch>BRANCH   : Electronics and Communication Engineering </branch>   <year>YEAR       :   2007</year>   <e-mail>E-Mail   :   chethan@gmail.com</e-mail> </student> </students> </html>

program5.css

student{  display:block; margin-top:10px; color:Navy; } USN{  display:block; margin-left:10px;font-size:14pt; color:Red; } name{  display:block; margin-left:20px;font-size:14pt; color:Blue; } college{  display:block; margin-left:20px;font-size:12pt; color:Maroon; } branch{  display:block; margin-left:20px;font-size:12pt; color:Purple; } year{  display:block; margin-left:20px;font-size:14pt; color:Green; } e-mail{  display:block; margin-left:20px;font-size:12pt; color:Blue; }

Comments

Popular posts from this blog

PROG 6

PROG 7

PROG 2