Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

HTML Quiz (answers next to the questions)

1. What is the correct HTML for adding a background color? (B)


a) <body bg="yellow">
b) <body style="background-color:yellow;">
c) <background>yellow</background>

2. What is the correct HTML for creating a hyperlink? (C)


a) <a name=" http://www.kgu.kz/">kgu.kz</a>
b) <a url="http://www.kgu.kz/">kgu.kz</a>
c) <a href="http://www.kgu.kz/">kgu.kz</a>
d) <a>http://www.kgu.kz/</a>kgu.kz

3. How can you open a link in a new tab/browser window? (A)


a) <a href="url" target="_blank">
b) <a href="url" new>
c) <a href="url" target="new">

4. What is the correct HTML for inserting an image? (D)


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

5. What is the correct HTML for inserting a background image? (A)


a) <body style="background-image:url(background.gif)">
b) <body bg="background.gif">
c) <background img="background.gif">

6. In the code <frameset cols="120,*"> the following would be true. (C)


a) Top frame would be 120 pixels high
b) Left frame would be 120 inches wide
c) Left frame would be 120 pixels wide

7. Adding _top to a link within a frameset does what? (A)


a) cancels all frames, loads in full browser window
b) loads page in parent frame
c) loads the page into the current window

8. Which is not valid HTML? (B)


a) <frameset rows="16%,84%">
b) <frameset columns="16%,84%">
c) <frameset cols="100,150">

9. Which of the following is not used to make your frame borders invisible? (B)
a) framespacing="0"
b) col="0"
c) border="0"

10. If you leave out the setting for scrolling what will happen? (A)
a) A scrollbar will appear if needed
b) No scrollbar will appear even if needed
c) A scrollbar will always be present, needed or not

You might also like