Internet Programming
Internet Programming
You need to know who you are trying to reach before you design your web pages. Knowing your
audience will help you present information in a suitable manner to interest that audience. There
is no point, for example, in writing your content in a manner which people wouldnot understand.
Navigation
One of the biggest frustrations for visitors to a website is not being able to find what they are
looking for. Most visitors want to be able to find content fairly easily. To that end, you should
think about how users will navigate around your site. Well there be an overall sitemap, will you
provide a main navigation on ever page, will you provide search boxes or quick visit drop down
menus? If people can’t easily get around your site, you may find the leave and don’t return.
Clean navigation is also important for search engines as it allows them to easily crawl your
website to rate your content.
Loading speeds are becoming important, particularly given the social media items that can be
pulled onto a page. It’s no longer difficult to pull videos and photo albums directly from the likes
of Flickr or YouTube. If your page has to many images, to much text, to many feeds or videos
then you may find it doesn’t load fast enough. If this is the case on your broadband, think how it
will be for those on dial-up internet or slower broadband connections!
Graphics: When adding graphics to your site, make sure to save them in a suitable format
(JPEG and GIF are the most popular). When inserting shapes, lines, backgrounds, buttons or any
graphics that only have a few colours, a GIF file is best. JPEG files are best suited for pictures.
Also be aware of the size of the file you save. The larger the file size, the slower your web pages
will load. Also make sure to use “Alt” (alternative) text on your web pages.
- Outline two advantages of using a shared web server as used in web hosting option. Give two
examples of web hosting companies. [2 marks]
1) Shared Web Hosting means that one physical server and its available resources hosted are shared
among many users. Each customer has his own limit on particular services like disk space,
monthly traffic, email accounts, FTP accounts, databases.
2) The lower price which is the decisive factor for most buyers. whether this service will fit your
needs depends on the size of the hosted web sites. The greatest advantage is Ipage
-State the meaning of the term domain name and explain two benefits of registering the
company’s domain name. [4 marks]
The domain name system (DNS) is the way that internet domain names are located and
translated into internet protocol (IP) addresses. The domain name system maps the name people
use to locate a website to the IP address that a computer uses to locate a website. For example, if
someone types TechTarget.com into a web browser, a server behind the scenes will map that
name to the IP address 206.19.49.149.
Benefits
i. Web browsing and most other internet activity rely on DNS to quickly provide the
information necessary to connect users to remote hosts. DNS mapping is distributed
throughout the internet in a hierarchy of authority.
ii. Access providers and enterprises, as well as governments, universities and other
organizations, typically have their own assigned ranges of IP addresses and an assigned
domain name; they also typically run DNS servers to manage the mapping of those names to
those addresses.
-Outline three factors that should be considered during website maintenance. [3 marks]
Navigation
One of the biggest frustrations for visitors to a website is not being able to find what they
are looking for. Most visitors want to be able to find content fairly easily. To that end, you
should think about how users will navigate around your site. Well there be an overall
sitemap, will you provide a main navigation on ever page, will you provide search boxes or
quick visit drop down menus? If people can’t easily get around your site, you may find the
leave and don’t return. Clean navigation is also important for search engines as it allows
them to easily crawl your website to rate your content.
Graphics
When adding graphics to your site, make sure to save them in a suitable format (JPEG and
GIF are the most popular). When inserting shapes, lines, backgrounds, buttons or any
Headlines
An important factor when choosing a layout is a headline. This is most likely the first thing
your visitors will see and is predominantly what they will use to establish what content is
on the page. Make sure it grabs attention and is relevant. For instance you wouldn’t write
“information on product X” if the page was actually about product Y.
Web design can be a simple or complex process depending on your own personal creative
and development ability, and the tips above are intended to give you a helping hand. If
you’re still not sure of the process or would like some assistance, then contact the web
design team at Easyspace today for a free web design consultation.
-State four requirements to be considered when acquiring a web programming language and
outline two benefits that a small business organization would gain by having a website.
[4 marks]
Popularity. This is a very important one. A good place to start is the Tiobe index. You are
more likely to find people to collaborate with if you use a popular language. You are also more
likely to find reference material and other help. Unfortunately, the most popular language
globally may not be a good match for your problem domain.
Language-domain match. Choose one that matches your problem domain. You can do this
by looking at what other people in your field are using (after adjusting for popularity, so don't
think the match with Java is good simply because a lot of people are using Java) or by looking at
some code that solves problems you are likely to have and seeing how natural the mapping is.
Availability of libraries. Some would argue that this is the same as the point above, but I
don't think so. If there's a library that solves your problem well, you'll put up with some ugly
calling conventions or hassle in the language.
Efficiency. Languages aren't fast - compilers are efficient. Look at the efficiency of compilers
or interpreters for your language. Be aware that interpreted code will run an order of magnitude
slower than compiled code as a rule of thumb.
Expressiveness. The number of lines of code you create per hour is not a strong function of
language, so favour languages that are expressive or powerful
Tool support. Popularity usually buys tool support (and some languages are easier to
write tools for). If you are a tool-oriented user, choose a language with good tool support.
Just read this article on tool mavens vs language mavens before you make a choice.
Advertising
A website is more environmental friendly when it comes to advertising and marketing. There are
lots of ways to advertise your products or services through the internet. One example
is Facebook ads, an advertising feature offered through Facebook. Another one is called SEO.
This is a major advantage for your business. Having a good SEO service provider can boost the
ranking of your website which quickly results in increased sales and higher profits.
Satisfaction
Having a website will be more convenient for your customers and leads. Make it easy for your
customers to purchase from you! Many will be more likely to visit your website, rather than
driving a car to your physical location and browsing for your products. From a customer’s point
of view, it’s better for them if they don’t have to ask anything. They can just find what they’re
looking for on your online site.
A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that
form Web pages to users, in response to their requests, which are forwarded by their
computers' HTTP clients. Dedicated computers and appliances may be referred to as Web
servers as well. The process is an example of the client/server model. All computers that host
Web sites must have Web server programs.
web designers are responsible for the design of the visual layout of websites. Excellent
designers are good at the using of a variety of concepts, such as color collocation,
typesetting, spatial relations and user experience.
Through the use of graphic design software and prototyping tools, web designers could
create the initial version of a website. Then the completed design will pass to web
developers for coding.
Web developers are generally considered as a group of people who use the left brain to develop
the coding of products. Under normal circumstances, Web developers get the design of the
page from the Web designer and then use front-end development technology to encode these
pages. They do not really care if the page looks good or not, but they care about the clean code
very much. Outstanding developers are always paying more attention to details and focusing on
each of them.
The required alt attribute specifies an alternate text for an image, if the image cannot be
displayed.
-With the aid of an example for each, distinguish between an ordered list and unordered list as
used in Internet Programming. [4 marks]
Unordered list are basically any point form list like in a word processor using dots to list
items; example . or o
Ordered list are list that categorized the list according to a, b, c or 1, 2, 3.
-Explain the meaning of the following as used in the input element. [4 marks]
(i) Name (ii) Size (iii) Value (iv) Max Length
Specifies the name of an <input> element
Specifies the width, in characters, of an <input> element
<area>
<base>
<br>
<col>
<embed>
<hr>
<img>
<input>
<keygen>
<link>
<meta>
<param>
<source>
<track>
<wbr>
1) Vertical frameset
How to make a vertical frameset with three different documents.
<html>
<frameset cols="25%,50%,25%">
</frameset>
</html>
2) Horizontal frameset
How to make a horizontal frameset with three different documents.
<html>
<frameset rows="25%,50%,25%">
</frameset>
</html>
3) Nested framesets
How to create a frameset with three documents, and how to mix them in rows and columns.
<html>
<frameset rows="50%,50%">
<frameset cols="25%,75%">
</frameset>
</frameset>
- Write a HTML code that would be used to display on the browser the following list of
counties; Nakuru, Kirinyaga, Bungoma, Machakos, Kiambu, Lamu in a drop down list with
the county Kirinyaga selected. The scree should have submit and reset button. [7 marks]
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
COUNTIES:
<SELECT NAME="Counties
<OPTION VALUE="naks">Nakuru
<OPTION VALUE="kr" checked >Kirinyaga
<OPTION VALUE="bung" >Bungoma
<OPTION VALUE="macha">Machakos
<OPTION VALUE="ki">Kiambu
<OPTION VALUE="lamu">Lamu
</SELECT>
</body>
</html>
a style attribute with a CSS rule to style a specific page element. They’re useful for quick,
permanent changes, but are less flexible than external and internal stylesheets as each
inline style you create must be separately edited should you decide to make a design
change.
ii. Explain the function of the tag and attributes associated with it. [4 marks]
<HTML>
<HEAD>
<TITLE>Welcome to Kingstone hospital</TITLE>
</HEAD>
<frameset rows="50%,50%">
<frameset cols="50%,50%">
<frame src="icu.html" />
<frame src="pharmacy.html" />
</frameset>
<frameset cols="50%,50%">
<frame src="icu.html" />
<frameset rows="25%,25%">
<frame src="icu.html" />
<frameset cols="25%,25%">
<form action="action_page.php">
<div class="imgcontainer">
<img src="img_avatar2.png" alt="Avatar" class="avatar">
</div>
<div class="container">
<label><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<label><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit">Login</button>
<input type="checkbox" checked="checked"> Remember me
</div>
-Differentiate between code view and design view as used in a web authoring tool. [4 marks]
Use the buttons in the upper-left of the Document toolbar to switch views:
.
-Explain two types of HTTP connection with the aid of diagrams. [4 marks]
HTTP can use both nonpersistent connections and persistent connections. A nonpersistent
connection is the one that is closed after the server sends the requested object to the client. In
other words, the connection is used exactly for one request and one response.
With persistent connections, the server leaves the TCP connection open after sending responses
and hence the subsequent requests and responses between the same client and server can be sent.
The server closes the connection only when it is not used for a certain configurable amount of
time. With persistent connections, the performance is improved by 20%.
-Georgina has been requested to design a website for an organization. Outline six phases that she
should consider during the design. [6 marks]
There are numerous steps in the web site design and development process. From gathering initial
information, to the creation of your web site, and finally to maintenance to keep your web site up to date
and current.
The exact process will vary slightly from designer to designer, but the basics are the same.
1. Information Gathering
2. Planning
3. Design
4. Development
5. Testing and Delivery
6. Maintenance
PhaseOne:InformationGathering
The first step in designing a successful web site is to gather information. Many things need to be taken
into consideration when the look and feel of your site is created.
This first step is actually the most important one, as it involves a solid understanding of the company it is
created for. It involves a good understanding of you – what your business goals and dreams are, and
how the web can be utilized to help you achieve those goals.
It is important that your web designer start off by asking a lot of questions to help them understand your
business and your needs in a web site.
Purpose
What is the purpose of the site? Do you want to provide information, promote a service, sell a
product… ?
Goals
What do you hope to accomplish by building this web site? Two of the more common goals are
either to make money or share information.
Target Audience
Is there a specific group of people that will help you reach your goals? It is helpful to picture the
“ideal” person you want to visit your web site. Consider their age, sex or interests – this will later
help determine the best design style for your site.
Content
What kind of information will the target audience be looking for on your site? Are they looking for
specific information, a particular product or service, online ordering…?
Using the information gathered from phase one, it is time to put together a plan for your web site. This is
the point where a site map is developed.
The site map is a list of all main topic areas of the site, as well as sub-topics, if applicable. This serves as a
guide as to what content will be on the site, and is essential to developing a consistent, easy to understand
navigational system. The end-user of the web site – aka your customer – must be kept in mind when
designing your site. These are, after all, the people who will be learning about your service or buying your
product. A good user interface creates an easy to navigate web site, and is the basis for this.
PhaseThree:Design
Drawing from the information gathered up to this point, it’s time to determine the look and feel of
your site.
Target audience is one of the key factors taken into consideration. A site aimed at teenagers, for example,
will look much different than one meant for a financial institution. As part of the design phase, it is also
important to incorporate elements such as the company logo or colors to help strengthen the identity of
your company on the web site.
PhaseFour:Development
The developmental stage is the point where the web site itself is created. At this time, your web designer
will take all of the individual graphic elements from the prototype and use them to create the actual,
functional site.
This is typically done by first developing the home page, followed by a “shell” for the interior pages. The
shell serves as a template for the content pages of your site, as it contains the main navigational structure
for the web site. Once the shell has been created, your designer will take your content and distribute it
throughout the site, in the appropriate areas.
PhaseFive:TestingandDelivery
At this point, your web designer will attend to the final details and test your web site. They will test things
such as the complete functionality of forms or other scripts, as well last testing for last minute
compatibility issues (viewing differences between different web browsers), ensuring that your web site is
optimized to be viewed properly in the most recent browser versions.
PhaseSix:Maintenance
The development of your web site is not necessarily over, though. One way to bring repeat visitors to
your site is to offer new content or products on a regular basis. Most web designers will be more than
happy to continue working together with you, to update the information on your web site. Many
designers offer maintenance packages at reduced rates, based on how often you anticipate making
changes or additions to your web site.
Other maintenance type items include regular site backups, WordPress upgrades, additional plugin
installation.
-Distinguish between hierarchical and linear web structure as used in web design using diagrams.
[4 marks]
• In a linear structure, each page is linked with the pages that follow and precede it in an
ordered chain
• Linear structure works best for Web pages with a clearly defined order
• In an augmented linear structure, each page contains an additional link back to an
opening page
• In the hierarchical structure, the pages are linked going from the most general page
down to more specific pages
• Users can easily move from general to specific and back again
• Within this structure, a user can move quickly to a specific scene within the page,
bypassing the need to move through each scene in the play
(a)
-Outline four benefits derived from using a three tier architecture in web design. [4 marks]
A “tier” in this case can also be referred to as a “layer”. The three tiers, or layers, involved
include:
1. A Presentation Layer that sends content to browsers in the form of HTML/JS/CSS. This
might leverage frameworks like React, Angular, Ember, Aurora, etc.
2. An Application Layer that uses an application server and processes the business logic for the
application. This might be written in C#, Java, C++, Python, Ruby, etc.
3. A Data Layer which is a database management system that provides access to application
data. This could be MSSQL, MySQL, Oracle, or PostgreSQL, Mongo, etc.
BENEFITS
1. It gives you the ability to update the technology stack of one tier, without impacting other
areas of the application.
2. It allows for different development teams to each work on their own areas of expertise.
Today’s developers are more likely to have deep competency in one area, like coding the
front end of an application, instead of working on the full stack.
3. You are able to scale the application up and out. A separate back-end tier, for example,
allows you to deploy to a variety of databases instead of being locked into one particular
technology. It also allows you to scale up by adding multiple web servers.
4. It adds reliability and more independence of the underlying servers or services.
5. It provides an ease of maintenance of the code base, managing presentation code and
business logic separately, so that a change to business logic, for example, does not impact the
presentation layer.
Distinguish between tag inspector and property inspector as used in web authoring applications.
[4 marks]
The Tag Inspector
The Property Inspector is a handy tool. It lets you adjust properties for all sorts of HTML tags,
like a table’s width or a paragraph’s font. But even the Property Inspector doesn’t tell the whole
story. Some HTML tags have additional properties that don’t appear there, such as the <a>
tag’s tabindex property, which lets you control the order in which Dreamweaver highlights links
as a visitor presses the Tab key.
The Property inspector becomes one of your most useful panels because it provides
you with information about any element you've selected in the Document window.
Event handlers
To allow you to run your bits of code when these events occur, JavaScript provides us with event
handlers. All the event handlers in JavaScript start with the word on, and each event handler
deals with a certain type of event. Here's a list of all the event handlers in JavaScript, along with
the objects they apply to and the events that trigger them:
onKeyPress Document, Image, Link, TextArea The user presses or holds down a
Uploading means data is being sent from your computer to the Internet. Examples
of uploading include sending email, posting photos on a social media site and using your
webcam. Even clicking on a link on a web page sends a tiny data upload. Downloading means
your computer is receiving data from the Internet.
Physical Tags
Physical tags are used to indicate exactly how specific characters are to be
formatted.
The syntax or format for using a PHYSICAL TAG is as follows:
Logical Tags
Logical tags are used to indicate to the visually impaired that there is some
emphasizes on the text. Each browser has its own technique as to how to indicate to
its viewer that the text between the tags are different.
The syntax or format for using a LOGICAL TAG is as follows:
Facilitates the transfer of data from server to browser, bringing pages to life in
the browser, e.g., processing and then delivering a field that a user
requests or submits in a form
Runs on-call. When a webpage is “called up,” or when parts of pages are
“posted back” to the server with AJAX, server-side scripts process and
return data
Plays a big role in how a database is built from the ground up and
managed afterwards—an example of how roles often overlap in all
aspects of development
Build application programming interfaces (APIs), which control what data and
software a site shares with other apps
ASP.NET provides full support for XML, CSS and other new as well as
established web standards.
Below are seven benefits of using Google sitemaps that you cannot afford to ignore.
Content Modification: You can only maintain higher ranks in the search engines if you
keep modifying content on your site; keeping it fresh and useful to the needs of your
visitors. If you have used a sitemap creator or manually created a sitemap, Google will
be alerted whenever your site’s content is modified.
Efficient Crawling: Every piece of content on a site should be crawled, which
sometimes may take long or never. With a sitemap, the website can be efficiently and
effectively be crawled.
SSH Keys
SSH keys are a pair of cryptographic keys that can be used to authenticate to an SSH server as an
alternative to password-based logins. A private and public key pair are created prior to
authentication. The private key is kept secret and secure by the user, while the public key can be
shared with anyone.
Firewalls
A firewall is a piece of software (or hardware) that controls what services are exposed to the
network. This means blocking or restricting access to every port except for those that should be
publicly available.
-Describe of the following Internet Security Threats and ways of prevention: [8 marks]
i. Man-in-the middle. iii. Phishing
ii. Spoofing. iv. Pharming
Man-in-the-middle is a type of eavesdropping attack that occurs when a malicious actor inserts
himself as a relay/proxy into a communication session between people or systems.
A spoofing attack is a situation in which one person or program successfully masquerades as
another by falsifying data, thereby gaining an illegitimate advantage.
Phishing the fraudulent practice of sending emails purporting to be from reputable companies in
order to induce individuals to reveal personal information, such as passwords and credit card
numbers.
Pharming is a cyber attack intended to redirect a website's traffic to another, fake site. It can be
conducted either by changing the hosts file on a victim's computer or by exploitation of a
vulnerability in DNS server software.
-State two technical challenges faced when enforcing internet security.(3 marks)
Bandwidth
One approach taken by ISPs to improve their data-carrying capacity and relieve congestion
across the Internet has been to dramatically increase the bandwidth of the backbones connecting
points of presence (POPs).2 Today's backbone speeds are typically on the order of 600 megabits
per second (Mbps) to 2.5 gigabits per second (Gbps), but some ISPs have considerably more
bandwidth in place.
Network Availability
Network availability is another essential element of information systems security. 25 Availability
is the probability that the network (i.e., the Internet) will be operational at a particular point in
time and accessible to those who need it. High availability is a key requirement for mission-
critical and time-critical applications of the Internet, including many in health care. If the
availability of the Internet is uncertain, then health care providers cannot rely on it for the
provision of remote patient care or access to electronic medical records in the emergency room,
although they may still be able to use it (with some degree of frustration) to submit bills and
allow consumers to select physicians.
PROGRAMMING.
-Explain three types of software used to deploy HTML files having forms to a web server.
Web Browsers
Test your webpages in a browser to make sure they look like you intended before you launch the
page. Chrome, Firefox, Safari (Mac), and Internet Explorer (Windows) are the most popular
browsers. Check your HTML in as many browsers as you have on your computer and download
lesser-known browsers, such as Opera, as well.
Graphics Editor
The type of graphics editor you need depends on your website. Although Adobe Photoshop is the
gold-standard for working with photos, you may not need that much power. You might prefer a
vector graphic program for logo and illustration work. A few graphics editors to look at for basic
web development use include:
GIMP is a free, open-source photo-editing program that provides many of the features of its
more expensive competitors. As open-source software, it is available for Windows, Mac, and
Linux.
Photoshop Elements for the Mac and PC is an image editor that is a light version of its
namesake but with plenty of power for working with graphics for the web.
Corel PaintShop Pro for PCs has almost all the useful tools you find in Photoshop and an
interface that is easy to use.
Inkscape for Windows, Mac, and Linux is a free vector graphics editor. This alternative to the
pricier Adobe Illustrator has more than enough power for simple design work and web graphics.
FTP Client
You need an FTP client to transfer your HTML files and supporting images and graphics to your
web server. While FTP is available via the command line in Windows, Macintosh, and Linux, it's
a lot easier to use a client.
-Outline two ways in which a web designer would control the size of graphics to be inserted on a
web page. [2 marks]
Decoration. If the image is just decoration and isn't part of the content, add a blank
alt="". For example, a screen reader doesn't waste time reading out content that is no core
need to the user. Decorative images don't really belong in your HTML. CSS background
images should be used for inserting decoration, but if it is unavoidable, alt="" is the best
way to go.
Content. If your image provides significant information, provide the same information in
a brief alt text. Or even better, in the main text which everybody can see. Don't write
redundant alt text. How annoying would it be for a sighted user if all paragraphs were
written twice in the main content? If the image is described adequately by the main text
body, you can just use alt="".
Link. If you put an image inside <a> tags, to turn an image into a link, you still must
provide accessible link text. In such cases you may, either, write it inside the same <a>
element, or inside the image's alt attribute. Whatever works best in your case.
Text. You should not put your text into images. If your main heading needs a drop
shadow, for example, use CSS for that rather than putting the text into an image.
However, If you really can't avoid doing this, you should supply the text inside the alt
attribute.
-Outline four reasons for the current popularity of open source software in web programming.
[2 marks]
Open source software can have a major impact on your entire organization. There are several
advantages of using open source software. The following are a list of the advantages of opting
for open source software.
1. Lesser hardware costs
Open source software is mostly high-quality software. When you use the open source
software, the source code is available. Most open source software are well-designed. Open
source software can also be efficiently used in coding. These reasons make open source
software an ideal choice for organizations.
3. No vendor lock-in
IT managers in organizations face constant frustration when dealing with vendor lock-ins'.
Lack of portability, expensive license fees and inability to customize software are some of
the other disadvantages. Using open source software gives you more freedom and you can
effectively address all these disadvantages.
4. Integrated management
By using open source software, you can benefit from integrated management. Open source
software uses technologies, such as, common information model (CIM) and web based
enterprise management (WBEM). These high-end technologies enable you to integrate and
combine server, application, service and workstation management. This integration would
result in efficient administration.