KOS 1110 Computers in Science

Assignment 2 – Questions in HTML

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

 

1) What is the difference between a “Web page” and an “HTML page”?

 

   Web page is a file in the Internet that we can serve by the browser. It usually written in            HTML. It can consist of animation, text, background, colors, sound, and others. More than one web page is called Web site.

   HTML page contain Hyper Text Mark up Language tags which contain commands for   example attribute or structure and content that are being display in the web page. Web browser use this information to determining how to display the page.

 

 

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

 

    No. We do not need to be connected to the Internet connection at all if we only want to create Web page for publication on CD-ROM, zip/floppy disk/local network.

 

 

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

 

   The Internet is the "network of networks" that connects millions of computers around the globe. It was the largest network because people can access it without any frontier.
A Web page is a text document that uses commands in a special language called HTML to add formatting, graphics and other media, and links to other pages.
The World Wide Web is a collective name for all the Web pages on the Internet. It also an internet service that provide easy feature and exiting multimedia interface to a lot of resources in the internet.

 

 

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

 

   At least three files: one for the text (which includes the HTML commands) and one for each graphics image. In some cases, we might need more files to add a background pattern, sound, or interactive features to the page.

 

 

5) Can you create Web page with Microsoft Word or WordPerfect? If so, how?

 

   Yes, or with any other word processor on any computer (as long as the word processor will save "plain text" or "ASCII" files). Many word processors also now allow us to save text in HTML format, and they will write some of the HTML for us.

 

 

 

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

 

<HTML>,

<HEAD>,

<TITLE>, </TITLE>,

</HEAD>

<BODY>

</BODY>

</HTML>

 

 

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

 

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

   <p>

   Tawheed ar-Rububiyyah<br>

   Tawheed al-Asma’ was Sifaat<br>

   Tawheed al-Uluhiyyah<br>

 

 

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 student”

    Another horizontal rule

 

  <H1>We are proud to be Muslims</H1>
<HR><H7>By</H7>
<H3>UIA students</H3><HR>

 

 

 

 

 

 

 

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><H1>Welcome to my home in the cyber space</H1>
Come in
</B></BODY></HTML>

 

 

 

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

 

On our page, we can put :
<A HREF="http://www.geocities.com/shahidahlatib/">
My Buddy shahidah’page 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 the 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="mylife.htm">All about me</A>

 

 

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

 

<A HREF="maine/tips.htm">Tips</A>

 

 

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

 

<A HREF="../chapter 1/superstitions.htm">
The Superstition Range</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>

 

We need to transfer all three of the following files into the same directory on the Web server:

mypage.htm

joy.jpg

me.gif

 

 

15) Write the HTML to produce the following :

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

 

Come for <STRIKE>cheap</STRIKE> free H<SUB>2</SUB>O on May 7<SUPER><U>th</U></SUPER> at 9:00<SMALL>PM</SMALL>



 

16) What is the easiest way to center a single paragraph or heading?

 

 Start it with <P ALIGN="center"> (or <H1 ALIGN="center">, and so on).

 

 

 

17) How would you center everything on entire page?

 

Put <DIV ALIGN="center"> immediately after the <BODY> tag at the top of the page, and </DIV> just before the </BODY> tag at the end of the page.

 

 

 

 

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?

 

<FONT COLOR="blue">We're having our annual Nixon Impeachment Day <FONT COLOR="red" SIZE=7>SALE</FONT> today!</FONT>

 

 

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

 

Put the following at the beginning of the Web page:
<BODY TEXT="green"><BASEFONT SIZE=4>
Then make each heading look like this:
<H1><FONT COLOR="yellow">Heading goes here</FONT></H1>

 

 

 

20) How do you say “(c) 1996, Webworks Inc.” on a Web page?

 

&copy; 1996, Webwonks Inc.or we can also use:
&#169; 1996, Webwonks Inc.

 

 

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

 

For example, <marquee scroll amount=”10” scroll delay=”10”> this tag mean the word that we highlight will move scroll with amount 10 and the time delay is also 10.

 

 

 

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

 

The name of the web site is www.pdb.org . The web page is easier to use compared to other web site because it provides a lot of molecule structure and composition that can be downloaded into pdb file.

 

 

 

 

 

 

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

 

Most computers on the Internet also have an identifying name known as a domain name. For example, the domain for the main IIUM email address is 10.1.2.11 the relationship between domain names and IP addresses is available on the net from computers known as domain name servers (DNS). For example, class A subnets AAA.xxx.yyy.zzz where the first dotted decimal (AAA) determine the organization and the last three (xxx.yyy.zzz) specify a computer in the organization. For class B, AAA.BBB.xxx.yyy where the first dotted decimal digit (AAA.BBB) determine the subnet while the last two (xxx.yyy) specify the computer in the subnet. For class C, AAA.BBB.CCC.xxx in which the first three fields of the IP address (AAA.BBB.CCC) are specified and the last field can vary, these subnet provide 256 IP addresses.



 

 

Hosted by www.Geocities.ws

1