0% found this document useful (0 votes)
766 views11 pages

Quiz HTML CSS

The document contains the questions and answers from multiple HTML, CSS, and HTML5 quizzes. The respondent answered all questions correctly, indicating proficiency with HTML, CSS, and HTML5 topics such as common tags, attributes, properties, and standards. Overall, the quizzes assessed a wide range of essential knowledge about web technologies and formatting.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
766 views11 pages

Quiz HTML CSS

The document contains the questions and answers from multiple HTML, CSS, and HTML5 quizzes. The respondent answered all questions correctly, indicating proficiency with HTML, CSS, and HTML5 topics such as common tags, attributes, properties, and standards. Overall, the quizzes assessed a wide range of essential knowledge about web technologies and formatting.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 11

HTML QUIZ

1. What does HTML stand for?


You answered:
Hyper Text Markup Language
Correct Answer!

2. Who is making the Web standards?


You answered:
The World Wide Web Consortium
Correct Answer!

3. Choose the correct HTML tag for the largest heading


You answered:
<h1>
Correct Answer!

4. What is the correct HTML tag for inserting a line break?


You answered:
<br>
Correct Answer!

5. What is the preferred way for adding a background color in HTML?


You answered:
<body style="background-color:yellow;">
Correct Answer!

6. Choose the correct HTML tag to make a text bold


You answered:
<b>
Correct Answer!

7. Choose the correct HTML tag to make a text italic


You answered:
<i>
Correct Answer!

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


You answered:
<a href="http://www.w3schools.com">W3Schools</a>
Correct Answer!

9. How can you create an e-mail link?


You answered:
<a href="mailto:xxx@yyy">
Correct Answer!

10. How can you open a link in a new tab/browser window?


You answered:
<a href="url" target="_blank">
Correct Answer!

11. Which of these tags are all <table> tags?


You answered:
<table><tr><td>
Correct Answer!

12. In HTML, inline elements are normally displayed without starting a


new line.
You answered:
True

Correct Answer!

13. How can you make a numbered list?


You answered:
<ol>
Correct Answer!

14. How can you make a bulleted list?


You answered:
<ul>
Correct Answer!

15. What is the correct HTML for making a checkbox?


You answered:
<input type="checkbox">
Correct Answer!

16. What is the correct HTML for making a text input field?
You answered:
<input type="text">
Correct Answer!

17. What is the correct HTML for making a drop-down list?


You answered:
<select>
Correct Answer!

18. What is the correct HTML for making a text area?


You answered:

<textarea>
Correct Answer!

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


You answered:
<img src="image.gif" alt="MyImage">
Correct Answer!

20. What is the correct HTML for inserting a background image?


You answered:
<body style="background-image:url(background.gif)">
Correct Answer!

HTML5 QUIZ
1. What is the previous version of HTML, prior to HTML5?
You answered:
HTML 4.01
Correct Answer!

2. Which doctype is correct for HTML5?


You answered:
<!DOCTYPE html>
Correct Answer!

3. Which HTML5 element is used to specify a footer for a document or


section?
You answered:
<footer>
Correct Answer!

4. Which of the following elements is no longer supported in HTML5?


You answered:
<font>
Correct Answer!

5. Which of the following elements is no longer supported in HTML5?


You answered:
<acronym>
Correct Answer!

6. In HTML5, onblur and onfocus are:


You answered:
Event attributes
Correct Answer!

7. What is the correct HTML5 element for playing video files?


You answered:
<video>
Correct Answer!

8. What is the correct HTML5 element for playing audio files?


You answered:
<audio>
Correct Answer!

9. Which attribute for <script> elements is no longer required in


HTML5?
You answered:
type
Correct Answer!

10. In HTML5, which method is used to get the current location of a


user?
You answered:
getCurrentPosition()
Correct Answer!

11. The new HTML5 global attribute, "contenteditable" is used to:


You answered:
Specify whether the content of an element should be editable or not
Correct Answer!

12. In HTML5, contextmenu and spellcheck are:


You answered:
HTML attributes
Correct Answer!

13. In HTML5, you can embed SVG elements directly into an HTML page.
You answered:
True
Correct Answer!

14. Graphics defined by SVG is in which format?


You answered:
XML
Correct Answer!

15. The <canvas> element in HTML5 is used to:


You answered:
draw graphics

Correct Answer!

16. Which built-in HTML5 object is used to draw on the canvas?


You answered:
getContext
Correct Answer!

17. In HTML5, which attribute is used to specify that an input field must
be filled out?
You answered:
required
Correct Answer!

18. Which input type defines a slider control?


You answered:
range
Correct Answer!

19. Which input type defines a week and year control (no time zone)?
You answered:
week
Correct Answer!

20. Which HTML5 element is used to display a scalar measurement


within a known range?
You answered:
<meter>
Correct Answer!

CSS QUIZ
1. What does CSS stand for?
You answered:
Cascading Style Sheets
Correct Answer!

2. What is the correct HTML for referring to an external style sheet?


You answered:
<link rel="stylesheet" type="text/css" href="mystyle.css">
Correct Answer!

3. Where in an HTML document is the correct place to refer to an


external style sheet?
You answered:
In the <head> section
Correct Answer!

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


You answered:
<style>
Correct Answer!

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


You answered:
style
Correct Answer!

6. Which is the correct CSS syntax?


You answered:
body {color: black;}
Correct Answer!

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


You answered:
/* this is a comment */
Correct Answer!

8. Which property is used to change the background color?


You answered:
background-color
Correct Answer!

9. How do you add a background color for all <h1> elements?


You answered:
h1 {background-color:#FFFFFF;}
Correct Answer!

10. Which CSS property is used to change the text color of an element?
You answered:
color
Correct Answer!

11. Which CSS property controls the text size?


You answered:
font-size
Correct Answer!

12. What is the correct CSS syntax for making all the <p> elements
bold?
You answered:
p {font-weight:bold;}
Correct Answer!

13. How do you display hyperlinks without an underline?


You answered:
a {text-decoration:none;}
Correct Answer!

14. How do you make each word in a text start with a capital letter?
You answered:
text-transform:capitalize
Correct Answer!

15. Which property is used to change the font of an element?


You answered:
Both font-family and font can be used
Correct Answer!

16. How do you make the text bold?


You answered:
font-weight:bold;
Correct Answer!

17. How do you display a border like this:


The top border = 10 pixels
The bottom border = 5 pixels

The left border = 20 pixels


The right border = 1pixel?
You answered:
border-width:10px 1px 5px 20px;
Correct Answer!

18. Which property is used to change the left margin of an element?


You answered:
margin-left
Correct Answer!

19. When using the padding property; are you allowed to use negative
values?
You answered:
No
Correct Answer!

20. How do you make a list that lists its items with squares?
You answered:
list-style-type: square;
Correct Answer!

You might also like