Edu
Hub
Courses
AI Tools
Leaderboard
Login/Register
AR
Abdullah Rashid
abdullah@example.com
Navigation
📚
Courses
🏆
Leaderboard
✨
AI Tools
←
HTML Advance
⏱
15:00
Quit
0 / 20 answered
0%
HTML Advance
10 questions · Medium difficulty · 00:20:00 min
🔥 In Progress
Question 1
What is the purpose of the "data-*" attribute in HTML5?
To encrypt user data
To define a data table
To store custom data private to the page or application
To create a database connection
Question 2
Which element is used to provide a caption for a <figure> element?
<legend>
<caption>
<figcaption>
<summary>
Question 3
What does the "contenteditable" attribute do?
Allows the user to edit the content of an element
Automatically saves the content
Hides the content
Makes the content read-only
Question 4
How can you make a custom dropdown without using <select>?
Use <list> tag
Use <input type="dropdown">
Use <option> outside <select>
Use a <div> with JavaScript to toggle a list
Question 5
What is the correct way to use the <template> tag?
Defines a reusable style
Holds HTML fragments that are not rendered until used by JavaScript
Preloads images
Creates a template for email
Question 6
Which input type is used for selecting a date and time?
time
date
datetime-local
datetime
Question 7
What is the purpose of the "sandbox" attribute in an <iframe>?
Enables a set of extra restrictions on content in the iframe
Prevents the iframe from loading
Makes the iframe transparent
Allows full access to parent page
Question 8
How do you specify that an <input> element should have spell checking enabled?
enable-spellcheck
check-spelling="yes"
spell="on"
spellcheck="true"
Question 9
Which element is used to represent the main content of a document?
<section>
<body>
<main>
<content>
Question 10
What is the difference between "defer" and "async" in <script>?
defer is for external scripts, async for inline
No difference
defer downloads script immediately, async waits
defer executes after HTML parsing, async executes as soon as downloaded
Question 11
Which attribute allows you to validate an email input with a specific pattern?
pattern
format
validate
regex
Question 12
What is the purpose of the <datalist> element?
Provides an autocomplete list for an <input>
Defines a list of data items
Creates a dropdown menu
Used for data binding
Question 13
How do you create a responsive iframe that maintains aspect ratio?
Set viewport meta tag
Use CSS transform
Wrap <iframe> in a <div> with padding-bottom and position relative
Use width="100%" only
Question 14
Which HTML element is used to display a dialog box or modal?
<modal>
<alert>
<dialog>
<popup>
Question 15
What does the "download" attribute in an <a> tag do?
Automatically saves the page as PDF
Opens the link in a new tab
Prevents the link from opening
Tells the browser to download the linked resource instead of navigating
Question 16
How can you define a custom element in HTML?
Using data-custom attribute
Using customElements.define() with JavaScript
Using <element> tag
Using <custom> tag
Question 17
What is the purpose of the "reversed" attribute in an <ol>?
Applies a reverse color scheme
Flips the list horizontally
Numbers the list in descending order (e.g., 3,2,1)
Reverses the order of items visually
Question 18
Which element is used to define a sidebar or complementary content?
<section>
<sidebar>
<nav>
<aside>
Question 19
What is the correct way to embed a PDF in an HTML page?
<iframe src="file.pdf">
<object data="file.pdf">
All of the above
<embed src="file.pdf">
Question 20
How do you enable cross-origin resource sharing (CORS) for media elements?
origin="*"
allow-cors
cors="true"
crossorigin attribute
✅ Answered:
0
⬜ Unanswered:
8
📊
20%
done
Submit Answers →