HTML & CSS Quiz 2019

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Punit.gupta
P
Punit.gupta
Community Contributor
Quizzes Created: 2 | Total Attempts: 1,102
| Attempts: 246 | Questions: 31
Please wait...
Question 1 / 31
0 %
0/100
Score 0/100
1. What does HTML stand for?  

Explanation

HTML stands for Hyper Text Markup Language. It is a standard markup language used for creating web pages and applications. HTML uses tags to structure the content and define the layout and appearance of the web page. It allows for the creation of hyperlinks, which enable users to navigate between different pages or sections within a webpage. HTML is the foundation of the World Wide Web and is widely used for creating and designing websites.

Submit
Please wait...
About This Quiz
HTML & CSS Quiz 2019 - Quiz

This HTML & CSS Quiz tests knowledge on basics of web development, including tags for headings, text formatting, and document structure.

Personalize your quiz and earn a certificate with your name on it!
2. What is the correct HTML for creating a hyperlink?

Explanation

The correct HTML for creating a hyperlink is "a href="http://www.w3schools.com">W3Schools". This is because the "a" element is used to create a hyperlink, and the "href" attribute specifies the URL that the hyperlink should point to. In this case, the URL is "http://www.w3schools.com", and the text that will be displayed as the hyperlink is "W3Schools".

Submit
3. Choose the correct HTML tag for the largest heading  

Explanation

The correct HTML tag for the largest heading is h1. This tag is used to define the most important heading on a webpage, typically the main title or heading. It carries the highest level of importance and is displayed as the largest and most prominent heading on the page.

Submit
4. Choose the correct HTML tag to make a text italic  

Explanation

The correct HTML tag to make a text italic is the tag.

Submit
5. What does CSS stand for?

Explanation

CSS stands for Cascading Style Sheets. It is a style sheet language used for describing the presentation of a document written in HTML or XML. CSS allows web developers to control the layout, formatting, and appearance of multiple web pages at once. It provides a way to separate the content of a web page from its design and allows for easy maintenance and consistency across a website.

Submit
6. How can you make a list that lists the items with bullets?  

Explanation

To make a list that lists items with bullets, you can use the "ul" tag in HTML. The "ul" stands for unordered list, and it creates a list where each item is preceded by a bullet point. This type of list is commonly used when the order of the items is not important. The other options mentioned - dl, ol, and list - are not correct because they do not specifically refer to creating a list with bullets.

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

Explanation

The correct HTML for referring to an external style sheet is the "link rel="stylesheet" type="text/css" href="mystyle.css"" code. This code uses the link element with the rel attribute set to "stylesheet" to indicate that it is a style sheet. The type attribute is set to "text/css" to specify the type of the style sheet. Finally, the href attribute is used to specify the location of the external style sheet file, in this case, "mystyle.css".

Submit
8. Choose the correct HTML tag to make a text bold  

Explanation

The correct HTML tag to make a text bold is the "b" tag. This tag is used to apply bold formatting to the text enclosed within it.

Submit
9. What is the correct HTML for inserting an image?

Explanation

The correct HTML for inserting an image is "img src="image.gif" alt="MyImage"". This code specifies the image source file as "image.gif" and provides an alternative text description for the image as "MyImage".

Submit
10. How can you make a list that lists the items with numbers?  

Explanation

The correct answer is "ol". This is because the "ol" tag in HTML is used to create an ordered list, where each item is listed with numbers.

Submit
11. How do you change the font of an element?  

Explanation

The "font-family" property is used to change the font of an element in CSS. By specifying a font name or a list of font names, the browser will attempt to display the text using the first available font in the list. This property allows designers to choose from a variety of fonts to style their web pages and create the desired visual effect.

Submit
12. How do you make the text bold in CSS?  

Explanation

To make the text bold in CSS, you can use the "font-weight:bold" property. This property sets the weight or thickness of the font, making it appear bold. It is the correct way to apply bold styling to text in CSS.

Submit
13. Which is the correct CSS syntax?  

Explanation

The correct CSS syntax is "body {color: black}". This is the correct way to declare CSS styles for the "body" element, where "color" is the property and "black" is the value. The opening and closing curly braces are used to enclose the declaration block.

Submit
14. Which property is used to change the background color?  

Explanation

The property used to change the background color is "background-color". This property allows you to specify the color of the background of an element on a webpage. By using the "background-color" property followed by a color value, you can easily change the background color to your desired choice.

Submit
15. How do you insert a comment in a CSS file?  

Explanation

In CSS, comments are inserted using the syntax /* comment */. This allows developers to add notes or explanations within the CSS code without affecting the styling. The given answer correctly demonstrates the syntax for inserting a comment in a CSS file.

Submit
16. Which CSS property controls the text size?

Explanation

The CSS property "font-size" controls the size of the text. It allows you to specify the desired size of the font in pixels, percentages, em units, or other units of measurement. By adjusting the value of this property, you can make the text appear larger or smaller on the webpage.

Submit
17. What is the correct CSS syntax for making all the elements bold?

Explanation

The correct CSS syntax for making all the

elements bold is "p {font-weight:bold}". This CSS rule targets all

elements and sets the font-weight property to bold, which makes the text appear in bold. The other options provided in the question are incorrect.

Submit
18. How do you add a background color for all elements?  

Explanation

To add a background color for all

elements, you would use the CSS selector "h1" followed by the property "background-color" and the desired color value. In this case, the color value is "#FFFFFF" which represents white. This CSS rule will apply the white background color to all

elements on the webpage.

Submit
19. How do you change the left margin of an element?

Explanation

The correct answer is "margin-left:". This CSS property is used to change the left margin of an element. By specifying a value for margin-left, you can create space between the left edge of the element and its surrounding elements.

Submit
20. Where in an HTML document is the correct place to refer to an external style sheet?

Explanation

The correct place to refer to an external style sheet in an HTML document is in the head section. This is because the head section is typically used to define meta information and include external resources such as stylesheets. Placing the reference to the external style sheet in the head section ensures that the styles are loaded before the content of the document, allowing for proper styling and presentation of the HTML elements.

Submit
21. How can you create an e-mail link?  

Explanation

To create an email link, you can use the "a" tag with the "href" attribute set to "mailto:[email protected]". This will allow users to click on the link and open their default email client with a new message addressed to "[email protected]".

Submit
22. How can you open a link in a new browser window?  

Explanation

To open a link in a new browser window, you can use the "target" attribute with the value "_blank". This attribute specifies where to open the linked document, and "_blank" indicates that it should be opened in a new window or tab. Therefore, the correct answer is "a href="url" target="_blank"."

Submit
23. How do you display hyperlinks without an underline?  

Explanation

The correct answer is "a {text-decoration:none}". This CSS code is used to remove the underline from hyperlinks. The "text-decoration" property is used to specify the decoration added to text, and setting it to "none" removes any decoration, including the underline.

Submit
24. What is the name of every homepage on the WWW?

Explanation

The correct answer is "index.html" because it is a commonly used default name for the homepage of a website on the World Wide Web. When a user visits a website without specifying a specific page, the server will typically look for an "index.html" file to display as the default homepage. This convention allows for consistency and ease of navigation for users.

Submit
25. How do you change the text color of an element?  

Explanation

The correct answer is "color:". This is the correct CSS property to change the text color of an element. The other options mentioned in the question ("text-color=", "text-color:", and "fgcolor:") are incorrect and do not exist in CSS.

Submit
26. The is doctype mandatory.

Explanation

The doctype declaration is mandatory in HTML documents. It is used to specify the version of HTML being used and to ensure that the web browser renders the page correctly. Without a doctype declaration, the browser may interpret the code in a different way, leading to inconsistent rendering across different browsers. Therefore, it is important to include the doctype declaration at the beginning of an HTML document to ensure proper rendering and compatibility.

Submit
27. To define the space between the element's border and content, you use the padding property, you are allowed to use negative values?

Explanation

The padding property is used to define the space between an element's border and its content. Negative values are not allowed for the padding property. Padding values must be non-negative, meaning they cannot be negative.

Submit
28. How do you make a list that lists its items with squares?  

Explanation

The correct answer is "list-style-type: square" because the CSS property "list-style-type" is used to define the style of the marker for list items. By setting it to "square", the list items will be displayed with square markers instead of the default bullet points.

Submit
29. How can you make a list that lists the items without bullets or numbers?

Explanation

The correct answer is "dl" because it stands for "definition list" which is a type of HTML list that does not use bullets or numbers. Instead, it consists of a series of terms and their corresponding definitions.

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

Explanation

The correct HTML tag for inserting a line break is
. This tag is a self-closing tag, which means it does not require a closing tag. It is used to create a line break or a new line within a paragraph or block of text.

Submit
31. Which of the following is used increase the row height?  

Explanation

not-available-via-ai

Submit
View My Results

Quiz Review Timeline (Updated): Feb 7, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 07, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 07, 2019
    Quiz Created by
    Punit.gupta
Cancel
  • All
    All (31)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does HTML stand for?  
What is the correct HTML for creating a hyperlink?
Choose the correct HTML tag for the largest heading  
Choose the correct HTML tag to make a text italic  
What does CSS stand for?
How can you make a list that lists the items with bullets?  
What is the correct HTML for referring to an external style sheet?...
Choose the correct HTML tag to make a text bold  
What is the correct HTML for inserting an image?
How can you make a list that lists the items with numbers?  
How do you change the font of an element?  
How do you make the text bold in CSS?  
Which is the correct CSS syntax?  
Which property is used to change the background color?  
How do you insert a comment in a CSS file?  
Which CSS property controls the text size?
What is the correct CSS syntax for making all the elements bold?
How do you add a background color for all elements?  
How do you change the left margin of an element?
Where in an HTML document is the correct place to refer to an external...
How can you create an e-mail link?  
How can you open a link in a new browser window?  
How do you display hyperlinks without an underline?  
What is the name of every homepage on the WWW?
How do you change the text color of an element?  
The is doctype mandatory.
To define the space between the element's border and content, you...
How do you make a list that lists its items with squares?  
How can you make a list that lists the items without bullets or...
What is the correct HTML tag for inserting a line break?  
Which of the following is used increase the row height?  
Alert!

Advertisement