Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
573 views

Exam WebDevelopment 1

This document contains an exam on web development topics like HTML, CSS, and the box model. It consists of 31 multiple choice questions testing knowledge of topics such as common tags and attributes used in HTML and CSS, the differences between various CSS selectors and properties, and how to structure elements on a page using CSS. The exam also covers the box model and how margins, borders, padding, and content are arranged.

Uploaded by

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

Exam WebDevelopment 1

This document contains an exam on web development topics like HTML, CSS, and the box model. It consists of 31 multiple choice questions testing knowledge of topics such as common tags and attributes used in HTML and CSS, the differences between various CSS selectors and properties, and how to structure elements on a page using CSS. The exam also covers the box model and how margins, borders, padding, and content are arranged.

Uploaded by

Ajay Saini
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Exam

Web Development-1

Duration: 60 minutes Total: 25

Answer all questions.

1. What does HTML stand for?


a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language

2. Who is making the Web standards?


a) Mozilla
b) Microsoft
c) The World Wide Web Consortium

3. What does CSS stand for?


a) Creative Style Sheets
b) Colorful Style Sheets
c) Computer Style Sheets
d) Cascading Style Sheets

4. Which is the correct CSS syntax?


a) body:color=black
b) {body;color:black}
c) {body:color=black(body}
d) body {color: black}

5. How do you insert a comment in a CSS file?


a) this is a comment
b) /* this is a comment */
c) // this is a comment
d) // this is a comment //

6. What is the correct HTML for inserting an image?


a) <img alt="MyImage" image.gif /img>
b) <image src="image.gif" alt="MyImage">
c) <img src="image.gif" alt="MyImage">
d) <img href="image.gif" alt="MyImage">

7. How can you make a list that lists the items with numbers? a)ol
b)dl
c)ul
d)list
8. How can you open a link in a new browser window?
a) <a href="url" target="_blank">
b) <a href="url" target="_self">
c) <a href="url" target="_new">
d) <a href="url" target="_window">

9. Choose the correct HTML tag for the largest heading.


a) head
b)h1
c)h6
d)header

10. What is the correct HTML for creating a hyperlink?


a) <a url="http://www.w3schools.com">W3Schools.com</a>
b) <a href="http://www.w3schools.com">W3Schools</a>
c) <a>http://www.w3schools.com</a>
d) <a name="http://www.w3schools.com">W3Schools.com</a>

11. How do you display hyperlinks without an underline?


a) a {text-decoration:none}
b) a {text-decoration:no underline}
c) a {decoration:no underline}
d) a {underline:none}

12. How do you make a list that lists its items with squares?
a) type: square
b) list-type: square
c) type: 2
d) list-style-type: square

13. In what form are style rules presented?


a) selector { property: value }
b) selector { property= value }
c) selector ( property: value )
d) selector ( property= value )

14. Which property applies a color to text?


a) text-color
b) foreground-color
c) background-color
d) color

15. What does the ID selector do?


a) Apply the style to a specific element
b) Apply the style to all the elements
c) Apply the style to a group of elements
d) Apply the style to elements of the same type

16. What selector should you use when applying a style to multiple elements? a) ID
b) Class
c) Type
d) Any of the above
17. Which of the following attributes of the <img> tag displays alternate text for the image?
a) caption
b) text
c) alt
d) identify

18. Where in the HTML document is the correct place to refer to an external style sheet? a)
In the <body> section
b) At the top of the document
c) In the <head> section
d) At the end of the document

19. Which HTML tag is used to define an internal style sheet?


a) <css>
b) <style>
c) <script>

20. Which HTML attribute is used to define inline styles?


a) class
b) style
c) styles
d) font

21. Which method is ideal for applying the same style to an entire website?
a) Internal CSS
b) Inline CSS
c) External CSS

22. “a:hover” and “a:active” are both examples of what?


a) pseudo-classes
b) attribute selectors
c) ids
d) selectors

23. Which of the following statements is not correct?


a) classes are identified a number sign (#)
b) classes are identified with a dot (.)
c) ids are identified with a number sign (#)

24.Each element can have only one ID and Each page can have only one element with that ID.
a) True
b) False

25.You can use the same class on multiple elements.


a) True
b) False

26. What is the difference between margins and padding?


a) margins add whitespace inside the border and padding adds whitespace outside
b) padding adds whitespace and margins increase the border size
c) there is no difference
d) margins add whitespace and padding increases the border size
e) padding adds whitespace inside the border and margins add whitespace outside

27. From the inside out, which of the following portrays the correct order of a box model?
a) margin, border, padding, content
b) content, margin, border, padding
c) border, margin, content, padding
d) content, padding, border, margin
e) padding, content, margin, border

28. Which of the following does CSS not do?


a) layout
b) design
c) style
d) content
e) format

29. The page title is inside the____tag.


a) Body
b) Head
c) Division
d) Table

30. Write html for the following table.


H1 H2 H3
C1 C2
C3 C4

31. Write html and css for the following using div.
Header
Content

Navigation Sidebar
Footer

You might also like