Sunteți pe pagina 1din 11

ROLL NO: 317

PRACTICAL FILE

COMPUTER METHODS

PREPARED BY PRATIK D. PATEL

ROLL NO: 317

Q.1 Write the HTML code at least with 30 lines which make use of following tags: The Italics tag, center tag, paragraph tag, break tag, font tag and its attributes. HTML Program:
<html> <head> <title>prog1</title> </head> <body> <p align="center"><b> What is HTML?</b></p> <p>HTML is a language for describing web pages.HTML stands for Hyper Text Markup Language.HTML is progamming language, it is a <b><i>markup language</i></b>.A markup language is a set of <b><i>markup tags </i></b> HTML uses markup tags to describe web pages. </br> <h2>HTML Tags</h2> HTML markup tags are usually called <i>HTML tags </i> </br> HTML tags are keywords surrounded by angle brackets like < > </br> HTML tags normally come in pairs</br> The first tag in a pair is the start tag, the second tag is the end tag </br> Start and end tags are also called opening tags and closing tags </br> </p> <center><b> What is HTML?</b> </center> <p>HTML is a language for describing web pages.HTML stands for Hyper Text Markup Language.HTML is not a programming language, it is a <b><i>markup language</i></b>.A markup language is a set of <b><i>markup tags </i></b> HTML uses markup tags to describe web pages. </p> <p><font face="arial" size="5" color="pink"> <i>HTML</i> is a language for describing web pages.HTML stands for Hyper Text Markup Language.</font> HTML is not a programming language, it is a <b><i>markup language</i></b>.A markup language is a set of <b><i>markup tags </i></b> HTML uses markup tags to describe web pages. </p> </body> </html>

OUTPUT:

ROLL NO: 317

Q.2 Create the HTML file named assignment.htm with given text and Specifications.
3

ROLL NO: 317

HTML Program:
<html> <head><title>Assignment</title></head> <body Bgcolor="pink" Background="LightHouse.jpg"></body> <center><b><u><i><font face="arial" size=14> Welcome to W3school</font></i></u></b></center></br></br></br> HTML is a language for describing web pages.HTML stands for Hyper Text Markup Language.HTML is progamming language, it is a markup language.A markup language is a set of markup tags HTML uses markup tags to describe web pages. HTML markup tags are usually called HTML tags. HTML tags are keywords surrounded by angle brackets like < > .HTML tags normally come in pairs.The first tag in a pair is the start tag, the second tag is the end tag.Start and end tags are also called opening tags and closing tags. </html> OUTPUT:

Q.3 Write HTML code which makes use of following tags: Unoredered List, Ordered List, Definitions List. HTML Program:
4

ROLL NO: 317

<html> <head> <title>prog4</title> </head> <body> <b> example on Unordered list</b> <ul> <li>Sports Car</li> <li>Business Car</li> <li>Economy Car</li> </ul> <b>Example on Ordered list</b> <ol start=4 type=I> <li>Sports car</li> <li>Business Car</li> <li>Economy Car</li> </ol> <b>example on defination list</b> <dl> <dt>sports car <dd>ferrari</dt> <dt>business car <dd>tata sumo</dt> <dt>economy car <dd>maruti</dt> </body> </html>

OUTPUT:

ROLL NO: 317

Q.4 Design a webpage using the image files XYZ.gif, POR.GIF and DEF.gif according to following specifications

ROLL NO: 317

HTML Program:
<html> <head> <title>prog4</title> </head> <body> <img border=2 src="xyz.gif"></img> <img height=100 width=100 src="pqr.gif"></img> <img height=100 width=100 src="def.gif"></img><br> HTML is a language for describing web pages.HTML stands for Hyper Text Markup Language.HTML is progamming language, it is a markup language.A markup language is a set of markup tags HTML uses markup tags to describe web pages. </body> </html> OUTPUT:

Q.5 Create a webpage giving flight details in a tabular fromat.

HTML Program <html>


7

ROLL NO: 317

<head><title>flight</title></head> <body> <table border=2 cellpadding=5 cellspacing=10 align="center" bgcolor="#D3BADA" width=426> <caption><font face="arial" size=14 color="pink">Schedule for fights</font></caption> <tr> <td width="198">Flight Name</td> <td width="170"></td> </tr > <tr> <td>Starting Place</td> <td></td> </tr > <tr> <td>Destination place</td> <td></td> </tr > <tr> <td>Arrival and departure time</td> <td></td> </tr > <tr> <td>class</td> <td></td> </tr > <tr> <td>fare</td> <td></td> </tr > </table> </body> </html> OUTPUT:

ROLL NO: 317

Q.6 Create a document with two links to an external document. The first link should lead to the beginning of the external document. The second link should be lead to a particular section in the external document.
9

ROLL NO: 317

HTML Program:
<html> <head> <title>prog7</title> </head> <body> <b><u>welcome to our homepage</U></b><br> This page has been linked to the website at our institute.for further information click on any of the following.</br> <b>about our university.</b> <br> over 90,000 students and alumni in over 120 countries are enjoying the flexibility abc provides;working on their own timetable and at their own pace.Anywhere is a classroom with abc.our students almost all work full-time.Most of them are making house payments,raising families and doing their best to make life better.ABC gives them the opportunity earn a degree in one of the fastest-growing fields today-computer and information sciences - a degree that will provide them entry into a job with potential and a good paycheck. </br> <b>contact information </br> American college of computer and information sciences</b></br> 2101 magnolia avenue,suite 200,birmingam,AL 35205</br> An Advisor:1-800-729-2427 <br> <b>sstephens@accis.edu</b></br> financial staff:1-800-749-2427</br> <b>accounting@accis.edu</b> <br> <b>fax number 1-205-328-2229</br> fax number 1-205-326-3822</b> </br> </body> </html>

OUTPUT:

10

ROLL NO: 317

11

S-ar putea să vă placă și