.:[ HOME ]:.  .:[ MY UNIVERSITY ]:.  .:[ KOS 1110 ]:.  .:[ MY ASSIGNMENTS ]:.  .:[ ISLAM & SCIENCE ]:.  .:[ TAZKIRAH ]:. .:[ MY FAMILY ]:.  .:[ MY FRIENDS ]:.  .:[CREDITS ]:.

 

KOS 1110 Computers in Science

Assignment 2 - Questions in HTML

Due date Friday, 6-8-2004, 5pm

 

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 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"?

 

Web pages are ordinary files with .htm or .html file extension. These files are accessible in the internet. Meanwhile HTML or “hypertext mark-up language” is codes that can be viewed in a browser like Internet Explorer or Netscape Navigator as a webpage. A web page can be viewed through the browser, but HTML page only can be viewed as a “document source”.

 

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

 

No, HTML pages can be created with word processing program such as “Notepad” without being connected to the internet but it must be saved as a text file and given a .html extension.

 

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

 

·        Internet: Global network of computers that enable users to communicate with each other globally.

·        Web page: Web pages are ordinary files with .htm or .html file extension, this files   are accessible in the internet.

·        World Wide Web: A hypertext-based and distributed information system that enable        users to create, edit or browsed the hypertext document.

 

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. One file for text and two files for two images.

 

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

 

Yes, it must be saved as text files and then by giving them .html or .htm extension.

 

 

 

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

 

  1. <html>…</html>
  2. <head>…</head
  3. <body>…</body>
  4. <title>… </title>

 

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>

<body>

<p><u> Categorization of classification of tawheed </u></p><br>

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>

            <h1 align=center><blink> We are proud to be Muslim </blink></h1>

<HR size=5>

<h6 align=center> By </h6>

<h3 align=center> UIA students </h3>

<HR size=5>

</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>My Home Page</head>

<title>Welcome to my home in the cyberspace</title>

<body>Come in</body>

</html>

 

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

 

            <a href=”the hypertext link here”>My Friend’s Home Page</a>

 

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

 

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

 

11. 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”>CD-ROM disc</a>

 

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

 

<a href=”chapter1/superstitions.htm”>chapter1</a>

 

13. 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” and “other page.htm”.

 

 

 

14. Write the HTML to produce the following:

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

 

<html>

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

<body>

Come for

<strike>cheap</strike>

free H<sub>2</sub>O

on May 7 <sup>th</sup>at 9:

</body>

</html>

 

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

 

 

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

 

<body><center>Contents</body>

 

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

<body>

<font color=”blue”>We’re having our annual Nixon Impeachment Day

<h1><font color=”red”>SALE</font></h1>

  today!</font>

</body>

</html>

 

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

 

            <html>

            <head><font color=”yellow”>heading</font></head>

            <body><h3><font color=”green”>all text</font></h3></body></html>

 

 

 

 

 

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

 

            <html>

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

            <body>

            &#169;1996, Webworks Inc.

            </body>

            </html>

 

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

 

     <strong>…</strong> tag. It is a logical style of tag. It informs what kind of text to    

     present.Strong emphasis is used normally for bold style.

 

      E.g.: <strong> STRONG </strong>

 

 

                           

                              STRONG

 

21. Search for any free web site in the internet and check whether you can upload molecular structure data files such as .mol, .xyz, etc.  Give the name of this web site and comment whether this web site is much easier to use compared to other web sites.

 

1.                  www.freeservers.com

2.                  www.stormloader.com

3.                  www.freewebhosting.com

4.                  www.bravenet.com

5.                  http://planet.time.net.my

 

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.

 

Net

Host or Node

115.

24.53.107

Net

Host or Node

145.24.

53.107

Net

Host or Node

195.24.53.

107