0% found this document useful (0 votes)
1 views3 pages

Basic HTML Web Programming

Uploaded by

wasswalawrence18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views3 pages

Basic HTML Web Programming

Uploaded by

wasswalawrence18
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ABIA SKILLS INSTITUTE-KYENGERA

MID-TERM EXAMS

Course Unit: Basic HTML Web Programming

Term 3,4,5

Time : 2 hours :30 minutes

INSTRUCTIONS

1. This paper contains FOUR compulsory questions.

2. Answer all questions

Question 1

a) Define the term HTML and explain its purpose in web development.

b) Explain the difference between a Web Browser and a Web Server.

c) State the specific purpose of the following basic HTML boilerplate tags:

i) <!DOCTYPE html>

ii) <html>

iii) <head>

iv) <body>

d) What file extension must you use when saving a basic HTML web page file?

Page 1 of 3
Question 2

a) HTML has heading tags ranging from <h1> to <h6>. Explain the visual and structural
difference between an <h1> tag and an <h6> tag.

b) Write the exact HTML code to display the heading "Welcome to My Vocational School"
using the most important heading tag.

c) Write the HTML code to display a simple paragraph that says: "Learning HTML helps me
build static websites."

d) Explain the function of the following line break and horizontal rule tags:

i) <br>

ii) <hr>

Question 3

a) Write the basic HTML tag used to insert an image into a web page. Is this tag an empty (self-
closing) tag or a container tag?

b) Explain the exact purpose of the following two image attributes:

i) src

ii) alt

c) A student saves an image named school_logo.png in the exact same folder as their web page.
Write the HTML code to display this image with an alternate text description of "Our School
Logo".

d) State two attributes you can use directly inside the image tag to change its physical display
size on the screen.

Page 2 of 3
Question 4

a) Identify and correct the syntax errors in the following bad lines of HTML code (rewrite the
correct code on your sheet):

i) <h1 Welcome to my site </h1>

ii) <p>This is a paragraph.<a>

iii) <img src="[Link]"> </img >

b) Why is it highly recommended to use lowercase characters when writing HTML tags and
naming web file assets?

c) State two simple code management habits that ensure an HTML document remains clean and
easy for a technician to read (e.g., code comments, indentation).

Page 3 of 3

You might also like