KOS 1110 Computers in Science

Assignment 3 - Questions in HTML

Due date:  Monday, 22-12-2002, 4:30pm

by:

Siti Marhana Bt Razali

0325574

BMATHSC

Section1

Dr. Ibrahim Ali NoorBatcha

marhana_84@yahoo.com

 

Instructions: The completed assignment needs to be prepared in MS Word format and sent to me in the printed format before the due date.  Send in your assignments using the email and publish them in you web pages before the due date.

 

1.   What is the difference between a "Web page" and an "HTML page"?

      The difference between the “Web page” and an “HTML page” is the “Web page” is            an HTML document accessible on the World Wide Web, while “HTML page” is the programming page of the “Web page” that can only be viewed by accessing             “document source” under “view”.

 2.   Do you need to be connected to the Internet constantly while you create HTML pages?  Explain your answer.

       No, the “HTML pages” can be created with word processing program that don’t need internet connection but must be saved as text files and be given an HTML extension.

 3.   Define the terms Internet, Web page, and World Wide Web.

        Internet: World largest computer network. It is a collection of networks and gateways around the world communicating via TCP/IP. All the computers that are connected  together into an amazingly huge global network so that they can communicate to each        other.

        Web page: Coherent document that is readable by a Web browser. A Web page may vary in complexity all the way from the simple piece of text enclosed by the HTML tags <PRE>...</PRE>, meaning “pre formatted”, to a densely coded HTML file         giving the user access to many types of hypermedia.

        World Wide Web: It is a global, virtual network based hypertext information system  that uses the internet as it transport mechanism to display computer screens ( or web pages ) or graphical, video, textual, and even audio information. It is a hyper media system that let you to browse through lots of interesting information.

 4.   How many files would you need to store on your computer to make a Web page with some text and two images on it?

       3 files .

 5.   Can you create Web pages with Microsoft Word or WordPerfect?  If so, how?

         Yes . You must save them as text files and give them a HTML extension .

          ( i.e.,research.html or research.htm )

6.   What four tags are required in every HTML page?

        The four tags required in every HTML page are :

            (i)   <html>

            (ii)  <head>

            (iii) <title>

            (iv) <body>

 7.   What is the difference between the HTML tags <P> and <BR>?

Differences

<P>

<BR>

Function

Creates paragraph

(Lines and Spacing) Indicate line break

End Tag

There’s an end tag

(i.e.,<p>………..</p>

There are no end tag

8.   What is expansion of the alphabets used in the following HTML tags:

      <A>, &nbsp, <HREF>, <SRC> and <HR>

                      · <A>: Hypertext Anchor

· &nbsp: Enter key

· <HREF>: Defines document link by filename, bookmark, URL of ID

· <SRC>:  To insert graphic.

· <HR>: Insert a divider line in the document, usually used after a header or             between section.

   9.   Do all tags require a beginning and an ending tag?  Give at least three HTML tags that doesn't require an ending tag.

      <DT>...definition term

      <DD>...definition definition

      <DL>...definition list

10. Must tags be written in capital (upper case) letters?

       No, tags may appear in either upper or lowercase. It depends to the user. They are free to suit themselves. For purposes of illustration, usually we use uppercase because  it is easier to distinguish from surrounding text.

11. Write the HTML with the appropriate line break and paragraph break tags to format the following with a blank line between them:

      Categorization of classification of Tawheed

      Tawheed ar-Rububiyyah

      Tawheed al-Asma’ was Sifaat

      Tawheed al-Uluhiyyah

      <html>

      <head>

      <title></title>

      </head>

      <body>

      <u>Categorization of classification of Tawheed<br></u>Tawheed ar-Rububiyyah<br>Tawheed Al-Asma’ was Sifaat<br>Tawheed al-Uluhiyyah<br>

      </body>

      </html>

12. Write the HTML for the following to appear one after the other:

      A large heading blinking with the words, "We are proud to be Muslims"

      A horizontal rule across the page

      A small heading with the one word "By"

      A medium-sized heading with the words, "UIA students"

      Another horizontal rule

      <html>

      <head>

      <title></title>

      </head>

      <body>

      <center><font size=6><blink>We are proud to be Muslim</blink></font><hr><font size=2>By</font><font size=4>UIA student</font><hr>

      </body>

      </html>

13. Write a complete HTML Web page with the title "My Home Page" and a heading at the top which reads "Welcome to my home in the cyber space" followed by the words, "Come in" in regular type.

      <html>

      <head>

      <title>My Home Page</title>

      </head>

      <body>Welcome to my home in the cyber space<br>Come in</body>

      </html>

14. How do you put a link to your friends’ home page in your home page?

      To create a link between my friends in web page type:

      <a href=”the friend’s web address”>the hypertext link here</a>

15. Your home page will be at http://www.mysite.com/home.htm when you put it on the Internet. Write the HTML code to go on that page so that when someone clicks on the words "All about me," they see the page located at http://www.mysite.com/mylife.html

      <html>

      <head>

      <title></title>

      </head>

      <body><a href= http://www.mysite.com/mylife.html>All about me</a>

      </body>

      </html>

16. You plan to publish a CD-ROM disc containing HTML pages. How do you create a link from a page in the \guide directory folder to the \guide\main\tips.htm page?

      <a href= “ main/tips.htm”>TIPS</a>

17. How about a link from \guide\main\tips.htm to the \guide\chapter1\superstitions.htm page?

      <a href= “chapter1/superstition.htm>CHAPTER1</a>.

18. If the following Web page is named mypage.htm, which files would you need to transfer to the Web server to put it on the Internet?

<HTML><HEAD><TITLE>My Page</TITLE></HEAD>

<BODY BACKGROUND="joy.gif">

<IMG SRC="me.jpg" ALIGN="right">

<H1>My Web Page</H1> Oh happy joy I have a page on the Web!<P>

<A HREF="otherpage.htm">Click here for my other page.</A>

</BODY></HTML>

mypage.htm.joy.gif.me.jpg.otherpage.htm

19. Write the HTML to produce the following:

Come for cheap free H2O on May 7th at 9:

<html>

<head>

<title></title>

</head>

<body><font size=2>Come for<strike>cheap</strike>freeH<sub>2</sub>O on May 7<sup><u>th</u></sup>at 9:</font></body>

</html>

20. What is the easiest way to centre a single paragraph or heading?

      <p>

      <center>my paragraph here</center>

      </p>

21. How would you centre everything on an entire page?

      <body>

      <center>my contents here</center>

      </body>

22. How would you say, "We're having our annual SALE today!" in normal-sized blue text, but with the word "SALE" at the largest possible size in bright red?

      <html>

      <head>

      <title></title>

      </head>

      <body>

      <font color= “#000080’>We’re having our annual

      <font size=7><font color= “#FF0000”>SALE</font>today!</font>

      </body>

      </html>

23. How would you make all text on a page green and a little larger than normal, but make all headings yellow?

      <body><font color= “#FFFF00”>my heading here<?font><br>

      <font size=5><font color= “008000”>my text here</font>

      </body> 

24. How do you say "(c) 1996, Webworks Inc." on a Web page?

      <html>

      <head>

      <title> “page 1” </title>

      </head>

      <body>&copy 1996, Webworks Inc.</body>

      <\html>

25.  Write the IP addresses of three computers in different places and use these examples to explain the classification of IP addresses as belonging to Class A, Class B..etc..

CLASS ID

NETWORK

NODE ID

DEFULT MASK

A

0-127

0-255.0-255.0-255

255.0.0.0

B

128-191.0-255

0-255.0-255

255.255.0.0

C

192-223.0-255.0-255

0-255

255.255.255.0

 

 

 

back to K.O.S