Вы находитесь на странице: 1из 4

BCC206: WEB-BASED CONCEPTS AND TECHNOLOGIES MARKING SCHEAME

1. (a) What is the internet?(3marks)


The internet is the series of interconnected networks allowing communication of data among
millions of computers worldwide.
1(b)Explain the client/server relationship.(3marks)
The relationship between two computer programs in which one program, the client program,
makes a service request to another, the server program.

1(c) Explain Web Server.(4marks)


A computer program that is responsible for accepting HTTP requests from clients (user agents
such as web browsers), and serving them HTTP responses along with optional data contents,
which usually are web pages such as HTML documents and linked objects (images, etc.).
Examples are:
Apache
Internet Information Service (IIS)

Q2. Create an html page that has the basic html structure.
<html> (1 mark)
<head> (1 mark)
<t i t l e>BMFI | Knowledge Entrepreneurs</ t i t l e>(1 mark)
<meta name="author" content=" Eric " />(1 mark)
<meta name="keywords" (1 mark)
content="computers , mouse, Wabtec, IT " /> (1 mark)
</head> (1 mark)
<body> (1 mark)
Welcome to BMFI Website
</body> (1 mark)
</html> (1 mark)

Q3. Explain HTML Links and create an html page to demonstrate html links.

A link is a connection from one web resource to another.


Anchor container tag, <a>, is used to create links. By default, text links are blue and underlined.
The href attribute is needed to create the link. href stands for Hypertext reference.
<a href=" ur l "> Link text to display </a>

<html>
<head>
<t i t l e>BMFI | Knowledge Entrepreneurs</ t i t l e>
<meta name="author" content=" Eric Leo " />
<meta name="keywords"
content="computers , mouse, Webtech, IT " />
</head>
<body>
Welcome to BMFI Website
<a href="http : / /www. bmfi.com.gh">
Vi s i t Our Website </a>
</body>
</html>

Q4. How can we insert image into HTML document? Explain through a program.

The <img> tag creates a holding space for the referenced image. Basically <img> tag has two
required attributes: scr and atr.
Required attributes for image tag:
1. Src attribute: To display an image on a page, you need to use the src attribute. Src stands
for "source". The value of the src attribute is the URL of the image you want to display.
Syntax: - <img src="url" alt="some_text"/> (1mark)
2. Alt attribute: alt stands for alternative. Using this alt attribute we can specify alternative
text for our image. Alternative text is useful to those browsers that cannot read graphical
content. Alternative text is displayed when an image is missing. (1mark)
Example:<img src="http://www.manipal.com/images/manipal-logo.jpg" alt="Manipal Logo">
The main required attribute are src and alt but some more attributes are there that we can
use with image tag but these are optional. Like
3) Align attribute specifies the horizontal and vertical alignment of an image according to the
surrounding element. (1mark)

Example:- <p><img src="bmfi_logo alt="bmfi" align="middle" /> life with dreams.</p>


3) Height and width the height and width attributes specifies the height of an image and
width of the image.
Example: <img src="bmfi.com"
alt="Distance education"
height="100"
width="100"/>
4) The border attribute specifies the width of the border around an image.
<img src="bmfi_logo.gif" alt="Distance education" border="5"/>
(1mark for any one of the above)
How we can insert image into HTML document
<html>
<body> <p> An image:
<img src="smiley.gif" alt="Smiley face" width="30" height="30" />
</p>
<p>
Now we can insert smiley image in the HTML document. </p>
</body>
</html> (6marks)
Output:An image

Q5. Explain different features of XML (10marks)


XML is popular for many features and few of them are listed here:
1. Easy Data Exchange: In XML, data and markup are stored as text that we can configure.
If we like, we can use XML editors to create XML documents but if something goes wrong
we can examine and modify document directly because its all just text.XML provides a
very efficient way of storing most data. In addition, when we standardize markup
languages, many different people can use them.
2. Customizing markup language: We can create customized markup languages using
XML, and that represents its extraordinary power. We can create a customized browsers
to handle that language.
3. Self-describing data: The data in XML document is self-describing. We can create our
own tags in XML so that if we will go back to our document years later, we can figure out
whats going on.

4. Structured and integrated data: In XML document we can specify not only data but the
structure of that data can also be specified. When we are dealing with complex and
important data we can integrate various elements in to other elements.
5. Well-formed XML documents: XML document must follow the syntax rules set up
properly. Each element also must nest inside any enclosing elements properly. for
example if in any example of XMl we are opening a tag but not closing the same then it is
not a well formed XML document.
6. Valid XML document: An XML document is valid if there is a document type definition
(DTD) associated with it and if the document complies with that DTD.
(2marks each for any five of the above)

Q6. Differentiate between HTML and DHTML?


(10marks)

Dynamic HTML is an extension of HTML that enables, among other things, the inclusion of
small animations and dynamic menus in Web pages. DHTML code makes use of style sheets
and JavaScript. (3marks)
When you see an object, or word(s), on a webpage that becomes highlighted, larger, a different
color, or a streak runs through it by moving your mouse cursor over it is the result of adding a
DHTML effect. This is done in the language coding and when the file of the webpage was saved
it was saved as the .dhtml format instead of .htm or .html. (2marks)
DHTML sites are dynamic in nature. DHTML uses client side scripting to change variables in the
presentation which affects the look and function of an otherwise static page. DHTML
characteristics are the functions while a page is viewed, rather than generating a unique page
with each page load (a dynamic website). (3marks)
On the other hand, HTML is static. HTML sites rely solely upon client-side technologies. This
means the pages of the site do not require any special processing from the server side before
they go to the browser. In other words, the pages are always the same for all visitors - static.
HTML pages have no dynamic content. (2marks)

Вам также может понравиться