Introduction To Web Design Cat 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

UNIVERSITY EXAMINATION 2018/2019

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY
CAT 1: BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY (May
2018/Sept 2018)

UNIT CODE: BIT1202 UNIT TITLE: INTRODUCTION TO WEB DESIGN


NAME: SANG WESLEY KIPKOECH
BIT/2019/51416
[30 MARKS]
__________________________________________________________________________________________
1. What is the internet (2
Marks)
The internet is a globally connected network system that uses TCP/IP to transmit
data via various types of media.
Connection of thousands of computers, spanning all over the world.
2. Describe five different types of social media tools popularly used today (5
Marks)
a. Blogs and Forums
Online forums allow members to hold conversations by posting messages. Blog comments are
similar except they are attached to blogs and usually the discussion centers around the topic of the
blog post.
b. Social Networks
Services that allow you to connect with other people of similar interests and background. Usually
they consist of a profile, various ways to interact with other users, ability to setup groups Example
are: Facebook, twitter, WhatsApp etc

c. Social News

This study source was downloaded by 100000832688379 from CourseHero.com on 01-11-2023 23:43:52 GMT -06:00

https://www.coursehero.com/file/57161256/INTRODUCTION-TO-WEB-DESIGN-CAT-1docx/
Services that allow people to post various news items or links to outside articles and then allows
it’s users to vote on the items.

d. Media Sharing
Services that allow you to upload and share various media such as pictures and video.

e. Bookmarking Sites
Services that allow you to save, organize and manage links to various websites and resources
around the internet.

3. Explain the following internet terminologies (6 Marks)


i. Email
ii. FTP
File Transfer Protocol (FTP) is a standard Internet protocol for transmitting
files between computers on the Internet over TCP/IP connections. FTP is a
client-server protocol where a client will ask for a file, and a local or
remote server will provide it.
iii. WWW
World Wide Web also known as the Web, is an information system
where documents and other web resources are identified by Uniform
Resource Locators which may be interlinked by hypertext, and are
accessible over the Internet. The resources of the WWW may be
accessed by users by a software application called a web browser.
iv. TCP/IP
Transmission Control Protocol/Internet Protocol, is a suite of
communication protocols used to interconnect network devices on the
internet. TCP/IP can also be used as a communications protocol in a
private network (an intranet or an extranet).
TCP- divides a message or file into packets that are transmitted over the
internet and then reassembled when they reach their destination.
IP- is responsible for the address of each packet so that it gets to the
correct destination

This study source was downloaded by 100000832688379 from CourseHero.com on 01-11-2023 23:43:52 GMT -06:00

https://www.coursehero.com/file/57161256/INTRODUCTION-TO-WEB-DESIGN-CAT-1docx/
v. Hypertext
Hypertext is text which contains links to other texts.
Allows documents to be linked, using key words, to other similar documents elsewhere on
the Internet.

vi. Frameset
A frameset is an element in hypertext markup language (HTML) which contains the
different frame elements. It is used to inform the browser of the division of the screen into
different split windows, and prohibits any content inside the body associated with a page.

4. Describe the use of the following elements in an HTML document (6


Marks)
i. <html>…….</html> beginning and closing of root element of an html
page
<html> - The opening of root element of an HTML page
</html> the closing of root element of an html page
ii. <head>……</head>
Opening and closing of html head that contain information about web
page.
<head> - opening of html head tag
</head> - closing of html head tag

iii. <body>…..</body>
Used to contain a web page's content, including hyperlinks, images,
tables, text, etc. It is required in every HTML document
<body> - Opening body tag
</body> - Closing body tag
5. Describe the use of HTML attributes, comments and whitespace (6
Marks)
Attributes: An attribute is used to define the characteristics of an HTML element
and is placed inside the element's opening tag. Attributes provide additional

This study source was downloaded by 100000832688379 from CourseHero.com on 01-11-2023 23:43:52 GMT -06:00

https://www.coursehero.com/file/57161256/INTRODUCTION-TO-WEB-DESIGN-CAT-1docx/
information about an element. Because tags <tag> have attributes, the <tag> tells
the browser to do something, while the attribute tells the browser how to do it.

Comments: is a piece of code which is ignored by any web browser. ...


Comments help you and others understand your code and increases code
readability. HTML comments are placed in between <!-- ... --> tags.

Whitespace: Any section of a document that is unused or space around an object.


White spaces help separate paragraphs of text, graphics, and other portions of a
document, and helps a document look less crowded.

6. Describe the output of the following HTML code (5


Marks)
<form name="myWebForm" action="mailto:youremail@email.com"
method="post">
First: <input title="Please Enter Your First Name" id="first" name="first"
type="text" />
Last: <input title="Please Enter Your Last Name" id="last" name="last"
type="text" />
<input type="submit" value="SUBMIT" />
</form>

a. The first line is the opening tag of the mail with attributes myWebForm which
specifies the name of a form “myWebForm”, action attribute specifies where to
send the form-data when a form is submitted through method attribute of the
form element tells the web browser how to send form data to a server. i.e. this
form will be send to “youremail@email.com”,
b. The second line prompt the user to enter the first name, the input field type text.
c. The third line prompt a user to enter last name and the input field is text
d. The fourth line “<input type="submit" value="SUBMIT" /> “defines a button for
submitting the form data to the server/email when clicked.
The fifth line </form> this is the closing tag of the form or end of the form

This study source was downloaded by 100000832688379 from CourseHero.com on 01-11-2023 23:43:52 GMT -06:00

https://www.coursehero.com/file/57161256/INTRODUCTION-TO-WEB-DESIGN-CAT-1docx/
In summary
When the code is executed, it will display label first aligned to a textbox for entering first
name, label last for entering the last name and submit button. Prompt a user to enter
first and last name.

The function of the submit button is to post the names entered to email
“youremail@email.com”

This study source was downloaded by 100000832688379 from CourseHero.com on 01-11-2023 23:43:52 GMT -06:00

https://www.coursehero.com/file/57161256/INTRODUCTION-TO-WEB-DESIGN-CAT-1docx/
Powered by TCPDF (www.tcpdf.org)

You might also like