Name: Siti Khayriyyah Bt. Mohd Hanafiah

Matric. No: 0515232

Course: Biomedical Science

Section: 3

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

 

A web page displays the contents of the website as intended by the composer, while a HTML page displays the commands and tags relative to the contents of the website.

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

 

No. Creating HTML only requires a normal text program eg: Microsoft Word, Frontpage, or even the simpler Notepad, but it must be saved with the tag .htm. Editing can be done in the program while one is offline and the creations and edits can be viewed by clicking on the HTML version of the text program. Once one is satisfied with the page, only then it is necessary to connect to the internet to upload the HTML pages.

 

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

 

The Internet is defined as a worldwide interconnection of individual networks operated by government, industry, academia, and private parties. A Web Page is a website, or a homepage constructed using the hyper-text markup language (html) which usually has a certain objective or theme. The World Wide Web is similar to the Internet in which it allows for computers anywhere in the world to connect with each other under the server-client system. It is a network of servers linked together by a common protocol, allowing access to millions of hypertext resources. It is also known as WWW, W3 and the Web.

 

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?

 

Three files would need to be stored. One file is specifically for text and commands for display of the two images with the tag .htm, and the two other files would be the source of image files, either in JPEG, GIF, or BMP etc format.

 

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

 

Yes. Type text and commands as usual, but when saving, click on Save As and choose the format for Web Page. The document will then be later displayed as a Web Page.

 

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

 

<HTML> <HEAD> <TITLE> <BODY> and their partner negating commands </HEAD></HEAD></TITLE></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>

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

<p>Tawheed ar-Rububiyyah

<p>Tawheed al-Asma’ was Sifaat

<p>Tawheed al-Uluhiyyah

</h4>

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

<font color=green><h1><blink>”We are proud to be Muslims”</blink></h1></font>

<hr>

<h6>”By”</h6>

<hr>

<h3>”UIA students”</h3>

<hr>

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

<title>"My Home Page"</title>

<heading><h3>"Welcome to my home in the cyber space"</h3></heading>

</html>

 

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

     

For eg: if the friends’ homepage is addressed at http://www.thestrokes.com/ then to create a link in the homepage, type this command :

<a href=”http://www.thestrokes.com/> Click here to go to The Strokes</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

 

<a href=http://www.mysite.com/mylife.html>”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 directory folder to the \guide\main\tips.htm page?

 

To create a link in the \guide directory folder to the \guide\main\tips.htm page, simply write the following command:

 

<a href=”\guide\main\tips.htm”> Tips</a>

 

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

 

<a href=”\guide\chapter1\superstitions.htm”>Superstitions</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 files that need to be transferred /uploaded are the following:

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

<body>

<font size=3> Come for <strike>cheap</strike> free H<font size=1>2</font>O on May 7<sup><font size=1><u>th</u></font></sup>

at 9:</font>

</body>

</html>

 

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

 

Type the command <center>…</center> before and after the paragraph or heading.

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

 

Type the command <center> at the beginning of body and only after writing all the text, image, etc that is desired, negate the effect with </center>

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>

<BODY>

<font size=3 color=”blue” font=”Times New Roman”>”We’re having our annual

Nixon Impeachment Day <font color=”red” size=7>SALE</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?

 

This can be done as in the following example:

<html>

<font color=”yellow” size=7>Hello world!</font>

<p>

<body text=”green” size=4> Greetings earthlings. We’ve come to conquer your planet and

turn you into slaves. Have a nice day.

<p>

Oh, please don’t try to escape. We will start by extracting your organs through any

fitting apertures.

<p>

This will feel like taking out a tooth.(Without anaesthesia though. Sorry, we’re on a

tight budget. The space travel took a lot of fuel.)</body>

</html>

 

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

 

<html>

<font size=3>”&copy;1996, Webworks Inc.”</font>

</html>

 

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

 

<strike>…</strike> To strike a word or words. Eg: <strike> This is a mistake</strike> would be displayed as: This is a mistake

<sup>…</sup> To make superscript. Eg: This is the 7<sup>th</sup> mistake. Would be displayed as This is the 7th mistake.

<person>…</person> used around names of people mentioned in a document.

<quote>…</quote> defines that text should be displayed as a short quote, i.e text will be surrounded by double quote (“) symbols.

 

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

 

Examples:

Computer 1: 123.234.003

Computer 2: 123.240.001

Computer 3: 122.002.148

 

Computer 1 belongs to Class C for smaller networks, in which only the final 3 digits can be altered from the range of 0-255. The IP addresses that are available under Class C is the smallest of all classes, which is exactly 256)

 

Computer 2 belongs to the larger Class B addresses for medium-sized networks, in which the final 6 digits can be altered in the range of 0-255. Therefore the total number of IP addresses available under Class B is 65536 (the square of 256).

 

Computer 3 belongs to the largest class, Class A for large networks with many devices, in which all nine digits can be altered within the range of 0-255. This amounts to a total of 16777216 IP addresses.

 

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.

 

Website address: https://kiki-science.tripod.com/index.htm