If you want to create a container for applying CSS styles without semantic meaning, you use:
Anonymous Quiz
69%
<div>
15%
<section>
8%
<header>
7%
<head>
👎2👍1
Which element is used to contain navigation links at the top of a webpage?
Anonymous Quiz
17%
<head>
64%
<header>
8%
<section>
10%
<div>
Which of the following is true about <section>?
Anonymous Quiz
3%
It is non-semantic.
88%
It represents a thematic grouping of content.
3%
It is always hidden.
5%
It can only be used once.
Which is the correct usage of <header>?
Anonymous Quiz
32%
<header> must always be at the top of the document.
55%
<header> can be used inside <article> or <section>
3%
<header> is the same as <head>.
10%
<header> is required in every HTML page.
Which HTML element is better for marking up blog posts or articles?
Anonymous Quiz
4%
<div>
62%
<section>
31%
<header>
4%
<head>
Which tag is used only for grouping without adding meaning?
Anonymous Quiz
68%
<div>
21%
<section>
9%
<article>
2%
<header>
Which tag is used to add external CSS to an HTML document?
Anonymous Quiz
20%
<style> inside <body>
64%
<link> inside <head>
9%
<header> inside <section>
7%
<css> inside <head>
Which element should be used when you want to group a set of sections under one heading?
Anonymous Quiz
28%
<div>
44%
<section>
12%
<head>
16%
<header>
What is the main difference between <div> and <section>?
Anonymous Quiz
14%
<div> is semantic, <section> is not
61%
<section> is semantic, <div> is not
18%
Both are semantic
7%
Both are non-semantic
What will this code display? <h1>Hello</h1> <h2>World</h2>
Anonymous Quiz
91%
Two headings, one larger and one smaller
9%
Only one heading
0%
A paragraph
0%
Error
Which is the correct way to insert a line break? <p>Hello < > World</p>
Anonymous Quiz
10%
<break>
3%
<lb>
83%
<br>
3%
<line>
What’s wrong in this code? <img src=flower.jpg alt=Flower> </img>
Anonymous Quiz
5%
Nothing wrong
88%
<img> should not have a closing tag
5%
Missing width and height
2%
Should use <image>
What is the purpose of using div tags in HTML?
Anonymous Quiz
31%
For creating Different styles.
58%
For creating different sections.
7%
For adding headings.
4%
For adding noscripts.
Which among the following is the correct way in HTML to insert an image?
Anonymous Quiz
5%
<img url=“https://bit.ly/2FicgIx”>Geeksforgeeks</img>
13%
<img href=“https://bit.ly/2FicgIx” alt= “Geeksforgeeks”></img>
77%
<img src=“https://bit.ly/2FicgIx” alt=“Geeksforgeeks”>
5%
<image src=“https://bit.ly/2FicgIx” alt=“Geeksforgeeks”></image>
❤1
Which of the following is the correct way to add background color in HTML?
Anonymous Quiz
7%
<body color = “green”>
2%
<body bg-color = “green”>
34%
<body style = “background-color=green”>
57%
<body style = “background-color: green;”>
How do you merge two or more columns in a table cell?
Anonymous Quiz
13%
merge
11%
rowspan
69%
colspan
8%
Span
What is the default playback behavior of the <video> element if the autoplay attribute is used?
Anonymous Quiz
10%
Video waits for user interaction
10%
Video downloads but doesn’t play
78%
Video plays automatically on page load
2%
Only audio plays automatically
What is the difference between the <div> tag and the <span> tag in HTML?
Anonymous Quiz
7%
<div> is used to display images and <span> to display videos
7%
<div> is used only for text styling and <span> to divide the page
7%
<div> is an inline element and <span> is a block element
5%
Both are used only for creating tables
75%
<div> is a block element and <span> is an inline element
What is the difference between the <ul> tag and the <ol> tag?
Anonymous Quiz
5%
<ul> is used to create a table and <ol> to create a list
7%
<ul> creates a numbered list and <ol> creates an unordered list
2%
Both are used only to display plain text without formatting
0%
<ul> is for images and <ol> is for links
87%
<ul> creates an unordered list and <ol> creates an ordered list
What is the role of the alt attribute inside the <img> tag?
Anonymous Quiz
8%
To automatically resize the image
11%
To display only a noscript for the image
14%
To show alternative text when hovering the mouse
3%
To change the image path
63%
To show alternative text if the image fails to load and for accessibility