KOS 1110 Computers in Science

Assignment 2 - Questions in HTML

Due date Monday, 29-8-2005, 1:00pm

 

Instructions: The completed assignment needs to be prepared in MS Word format and submitted in the printed format before the due date.  Send in your assignments using the email as 2yourname.doc file 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 different between “Web Page” and an “HTML page” is that 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 view 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 do

not need internet connection but it must save as text files and be given an  HTML    extension.

 

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

     

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

 

      Web page is made up of text and pictures that are stuck together and formatted by using HTML code. It is an HTML document available on the World Wide Web.

 

      World Wide Web (www) is defined as a global, virtual network based on hypertext information system that uses graphical ,video, textual and even audio information. It is a hyper media system that let you 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?

 

      There are three files which is two for images and one for text.

 

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

     

Yes, both of them can create Web Page. It must be saved as text files and given them an HTM ( or HTM for PC Computer) extension (book.html or book.htm).

 

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

      <html>………………</html>

      <head>………………</head>

      <title>………………..</title>

      <body>………………</body>

 

7.   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>

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

      </body>

      </html>

 

8.   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>

      <font size=7><blink>We are proud to be Muslims</blink></font><hr>

      <font size=2>By</font><font size=4>UIA students</font><hr>

      </body>

      </html>

 

9.   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>

 

 

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

     

To create link to my friends’ home page in my home page, type <a href = “My Friend’s Home Page”> the hypertext link here.</a>.

 

 

11. 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>

 

12. 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?

     

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

 

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

 

      Type<a href = “chapter1/superstitions.htm”> CHAPTER1</a>

 

14. 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>

 

The file which is need to transfer to the Web server to put it on the Internet are; mypage.htm, joy.gif, me.jpg & otherpage.htm

 

 

15. 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> free H<sub>2</sub>O on May 7<sup><u>th</u></sup>at 9</font>

</body>

</html>

 

 

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

 

      <p><centre>Paragraph</centre></p>

 

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

     

      <p><centre>Contents</centre></p>

     

 

18. How would you say, "We're having our annual Nixon Impeachment Day 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>

      <font color= #0000FF> We’re having our annual Nixon Impeachment Day <font size = 7><font color= #FF0000>SALE</font></font>today!</font>

      </body>

      </html>

 

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

     

      <html>

      <head><title></title></head>

      <body>

<font size=5><font color= #FFFF00>Heading</font></font><br><font size =5

><font color= #00FF00> Text</font></font>

      </body>

      </html>

 

 

20. How do you say "© 1996, Webworks Inc." on a Web page?

 

      <html>

      <head><title></title></head>

      <body>

       &copy 1996, Webworks Inc.”

      </body>

</html>

 

     

21. Explain the usage of any other HTML command which is not discussed in the class, using suitable examples.

     

      <Q> to define a quotation

      <U> to renders text as underscored (underlined)

      <UL> to creates an unordered(bulleted)list

      <BGSOUND> to include a background sound

 

22. 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 ID

NODE ID

DEFAULT 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

2550255.255.0

 

     

 

 

 

23. Print your own home pages from your web site.  Send the html files in the soft copy version.  Make sure that your web pages are free from plagiarism.