Which element should be used when you want to group a set of sections under one heading?
Anonymous Quiz
29%
<div>
43%
<section>
12%
<head>
16%
<header>
What is the main difference between <div> and <section>?
Anonymous Quiz
14%
<div> is semantic, <section> is not
62%
<section> is semantic, <div> is not
17%
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
12%
<break>
3%
<lb>
82%
<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
30%
For creating Different styles.
59%
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>
14%
<img href=“https://bit.ly/2FicgIx” alt= “Geeksforgeeks”></img>
76%
<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
6%
<body color = “green”>
2%
<body bg-color = “green”>
35%
<body style = “background-color=green”>
56%
<body style = “background-color: green;”>
How do you merge two or more columns in a table cell?
Anonymous Quiz
12%
merge
12%
rowspan
68%
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
12%
Video downloads but doesn’t play
77%
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
8%
<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
74%
<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
6%
<ul> creates a numbered list and <ol> creates an unordered list
2%
Both are used only to display plain text without formatting
2%
<ul> is for images and <ol> is for links
85%
<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
16%
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
To create a table with 3 rows and 2 columns, which basic tags are used?
Anonymous Quiz
5%
<form>, <input>, <button>
11%
<ul>, <li>, <ol>
2%
<div>, <span>
2%
<section>, <article>
82%
<table>, <tr>, <td>
What will this code create? <a href=https://example.com>Click here</a>
Anonymous Quiz
7%
A bookmark
80%
A link
9%
A button
4%
An image
Which tag is wrong in this code? <bold>Hello</bold>
Anonymous Quiz
3%
Nothing wrong
80%
<b> should be used instead of <bold>
6%
Should use <p>
11%
Should use <h1>
What does this code do? <ul> <li>HTML</li> <li>CSS</li> </ul>
Anonymous Quiz
6%
Numbered list
58%
Bullet list
15%
Dropdown menu
20%
Definition list
Which is the correct HTML for a checkbox? <input type= name=agree>
Anonymous Quiz
3%
<check>
15%
<checkbox>
77%
<input type=checkbox>
5%
<option>
What’s wrong here? <a>https://google.com</a>
Anonymous Quiz
3%
Nothing wrong
71%
Missing href
17%
Wrong tag
9%
Should be <link>
What does this code produce? <ol> <li>One</li> <li>Two</li> </ol>
Anonymous Quiz
14%
Bulleted list
78%
Numbered list
3%
Dropdown menu
4%
Definition list