Академический Документы
Профессиональный Документы
Культура Документы
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.
<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)
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)
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)