100% found this document useful (1 vote)
988 views

HTML Quiz (Answers Next To The Questions)

The document contains a 10 question HTML quiz with the answers next to each question. It covers topics like adding background colors and images, creating hyperlinks, opening links in new windows, inserting images, and settings for frames including sizing, borders and scrolling.

Uploaded by

Mono
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
988 views

HTML Quiz (Answers Next To The Questions)

The document contains a 10 question HTML quiz with the answers next to each question. It covers topics like adding background colors and images, creating hyperlinks, opening links in new windows, inserting images, and settings for frames including sizing, borders and scrolling.

Uploaded by

Mono
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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