You are on page 1of 2

Fundamental of Web Design Examination Assignment 1

Answer all the questions

Question 1

a) What is HTML? (1)


b) What are differences between HTML and HTTP? (2)
c) What are the essential or fundamental HTML tags in a web page? (2)
d) Create a web page using frames which contains two columns. The left frame contains five
hyperlinks namely: books, pens, watches, bags and shoes. When the user clicks on a link (for
example books) in the left frame, a webpage should load in the right frame which contains
details about the items like book cover image, book publisher name, book price and add to
cart
button for books category. Initially, display a welcome page in the right frame. (15)

Question 2

a) What is CSS? (1)


b) What are the differences between HTML and CSS? (2)
c) What are the different ways for specifying CSS in developing web pages? (2)
d) Create a webpage which contains a table for displaying your personal details like name,
age,
father name, mobile no, address, branch, email and gender. Follow the below requirements:
i. Display your picture in the top right corner of the web page as a background image.
ii. Display the table header background in red color and the text in white color.
iii. Display email row in bold font.
iv. Table should have a dashed, 1px width, grey color border.
Use only external CSS to specify the styling information in the above webpage.(15)

Question 3

a) What is Javascript? (1)


b) What are the differences between HTML and Javascript? (2)
c) Distinguish between functions and variables in Javascript(4)
d) Display a login form and validate the username and password fields using Javascript (8)

Question 4

a) What is PHP?(1)
b) State 5 advantages of using PHP web programming to develop a webpage or website? (5)
c) Using PHP insert the following details of a book into MYSQL database:
i. Book name
ii. Book author(s)
iii. Book description
iv. Book price
v. Book image url (9)
Question 5

a) Write a PHP function that checks whether a given number N is positive or negative.(10)
b) Describe and differentiate the following methods used in PHP, with aid of examples:
i) $_POST (4)
ii) $_GET (4)
c) State two rules to name a variable in PHP?(2)

You might also like