0% found this document useful (0 votes)
19 views

Web-I-Question-Bank

WebQb

Uploaded by

abdullasalim460
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Web-I-Question-Bank

WebQb

Uploaded by

abdullasalim460
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Tishk International University

Computer Engineering Department


Web Programming I
Question Bank

Q1. Fill in the blanks in each of the following.


a) HTTP stands for ___________________________________________________________.
b) ____________________________ is the CSS property that specifies the type of border that surrounds
the matched element like (solid, dashed, double, etc.).
c) RGB stands for ________________________________________.
g) ______________________________________ is the CSS property-value pair that causes underlining to
take place.
d) URL stands for ____________________________________________________________.
e) ______________________________________ is the CSS property-value pair that causes lowercase
letters to be displayed with smaller-font uppercase letters.
f) CSS selectors are _______________, ________________, ________________, _________________.

Q2. What’s difference between DIV and SPAN elements (Give a simple example).

Q3. Order the CSS rules below from highest to lowest priority using numbers (1 to 5).
( ) In the settings defined by a user for a particular browser installation.
( ) In a style element in the web page’s head section.
( ) In an element’s style attribute.
( ) In the browser’s native default settings.
( ) In an external file.

Q4. Explain the following in short (give a simple example)


a) What’s difference between PRE and P elements?
b) What is MARGIN and PADDING properties are used for?
Q5. Write complete HTML and CSS code that generates output below.
Tishk International University
Computer Engineering Department
Web Programming I
Question Bank

Q6. Fill in the blanks in each of the following.


a) DOM stands for ___________________________________________________________.
b) The a element’s _______________ attribute value specifies where to open the linked-to web page.
c) ____________________________ is the CSS property that specifies the type of border that surrounds
the matched element like (solid, dashed, double, etc.).
d) Input element’s most common attributes are ______________, _______________, _______________.
e) ______________ element is used to display images in HTML.

Q7. What’s difference between outerHTML and innerHTML of document object (Give an example).

Q8. Write CSS rule for images below to set background image (Assume name of image is
background.jpg).

Q9. Convert the following DOM node tree to html code.

Q10. What’s difference between ul and ol elements (Give a simple example for each).
Q11. Fill in the blanks in each of the following.
a) HSL stands for ___________________________________________________________.
b) ______________________________________ is the CSS property-value pair that specifies the
boldness of the text characters.
c) The ___________ element is for a superscript. The ___________ element is for a subscript.
d) CSS selectors are _______________, ________________, ________________,
_________________.
Tishk International University
Computer Engineering Department
Web Programming I
Question Bank

e) ______________________________________ is the CSS property-value pair that generate


lowercase roman numerals for list items.

Q12. Write complete HTML and CSS code that generates output below (car1.jpg, car2.jpg, car3.jpg).

Q13. Match the following terms with its definition.


_____ HTML a. A language used to specify a web page’s appearance
_____ FTP b. The location of a web document or resource
_____ Web c. A markup language “marks up” a document by surrounding parts of its content
with tags.
_____ CSS d. Is a collection of documents, called web pages, that are shared by computer
users throughout the world.
_____ HTTP e. A protocol for file transfer
_____ URL f. A protocol with a set of rules and formats for exchanging messages between
computers.

Q14. Write CSS style rules that make each of the elements described below to red (color: red;). Write the
selector rules as efficiently as possible.
a. All the elements in the body
________________________________
b. h2 elements
________________________________
c. h1 elements and all paragraphs
________________________________
d. Elements belonging to the class special
________________________________
e. All elements in the “intro” section
________________________________
Tishk International University
Computer Engineering Department
Web Programming I
Question Bank

f. strong elements in the “main” section


________________________________
Q15. What is the purpose of the thead element, and what is the purpose of the tbody element?

Q16. Write a complete HTML and CSS code that generates the following output.

Q17. Fill in the blanks in each of the following.


a) For an RGB color value, each of the three colors uses integer ranges from ______ to _________.
b) ______________________________________ is the CSS property specifies whether the text is to
be displayed normally or slanted.
c) __________________________ is the CSS property specifies the horizontal alignment for a block
of text.
d) CSS selectors are _______________, ________________, ________________,
_________________.
e) __________________________ property specifies the size of the text characters.

Q18. Match the following terms with its definition.


_____ HTTP a. Is one of the organizational elements in HTML.
_____ DOCTYPE b. The location of a web document or resource
_____ Web c. A markup language “marks up” a document by surrounding parts of its content
with tags.
_____ aside d. Is a collection of documents, called web pages, that are shared by computer
users throughout the world.
_____ HTML e. The first construct, in html that tells the browser what type of document the web
page is.
_____ URL f. A protocol with a set of rules and formats for exchanging messages between
computers.

Q19. What’s difference between descendant selector and child selector (Give a simple example for each).
Q20. In general, what is the relationship between section and article?
Tishk International University
Computer Engineering Department
Web Programming I
Question Bank

Q21. Write CSS style rules that make each of the elements described below to red (color: black;). Write
the selector rules as efficiently as possible.
a. All the elements in the body
________________________________
b. strong elements in the “main” section
________________________________
c. h2 elements and all paragraphs
________________________________
d. Elements belonging to the class special
________________________________
e. All elements in the “intro” section
________________________________
f. strong elements in the “special” section
________________________________

Q22. Write a complete HTML and CSS code that generates the following output.

NOTE: Check also the lab tasks and exercises of the textbook.

You might also like