Home » Quiz & Trivia » HTML & CSS » HTML / CSS Quiz with answers – Part 3

HTML / CSS Quiz with answers – Part 3

Practical questions to test your knowledge of HTML and CSS – Part 3

Which tag is used to display preformatted text ?
<pre> … </pre>
<prefor> … </prefor>
<pre text> … </pre text>
<pre format> … </pre format>

Correct!

Wrong!

How do I add alternative text for an image ?
<img src = “http://website.com/logo.png” alternate = “logo” />
<img src = “http://website.com/logo.png” alt text = “logo” />
<img src = “http://website.com/logo.png” alternate text = “logo” />
<img src = “http://website.com/logo.png” alt = “logo” />

Correct!

Wrong!

How to embed audio files in HTML ?
<embed src = “audio.mp3” width = “50” height = “10”>
<embed sound= “audio.mp3” width = “50” height = “10”>
<embed audio = “audio.mp3” width = “50” height = “10”>
<embed music = “audio.mp3” width = “50” height = “10”>

Correct!

Wrong!

In HTML, Uniform Resource Locator (URL) is used _____
To create a frame document.
To create an image map on a web page.
To customize the image on a web page.
To identify a name or resource on the Internet.

Correct!

Wrong!

CSS3 is an acronym for _____
Cascading Style Sheet
Costume Style Sheet
Cascading System Style
None of these answers are true

Correct!

Wrong!

Which of the following protocols is not used on the Internet ?
Gopher
HTTP
WIRL
Telnet

Correct!

Wrong!

What should be the value of the "width" property of the table (<table style = "width: '???'">), so that the width of the table fits the current width of the browser window?
100%
640px
1024em
120cm

Correct!

Wrong!

What element is used in <HEAD> of an HTML / XHTML page, if we want to use an external CSS style sheet to decorate the page?
<src>
<link>
<style>
<css>

Correct!

Wrong!

What attribute can be added to many HTML / XHTML elements to identify them as a member of a specific group?
id
class
div
span

Correct!

Wrong!

When we write <img src = "img.png">, what does "img.png" mean?
element
attribute
operator
value

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

HTML / CSS Quiz – Part 3

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...

Leave a Reply

Your email address will not be published. Required fields are marked *

*

x

Check Also

how-to-clean-infected-pc

How to clean an infected computer ?

What to do when your computer is infected with a virus or other malicious program? ...