Fundamentals of Front End Development MCQs with Answers
Practice important Fundamentals of Front End Development MCQs with answers and explanations.
Chapter: 127
Q1441:
What HTML5 element is used to define graphic drawing using JavaScript?
A. <canvas>
B. <svg>
C. <draw>
D. <graphic>
Correct Answer:
A
Chapter: 127
Q1442:
Which HTML5 element is used to define sound or music content?
A. <video>
B. <audio>
C. <track>
D. <embed>
Correct Answer:
B
Chapter: 127
Q1443:
Fill in the blank: The <source> element in HTML5 is used to define _______ for <video> and <audio>.
A. tracks
B. formats
C. sources
D. types
Correct Answer:
C
Chapter: 127
Q1444:
Which of the following HTML5 elements is used to define video or movie content?
A. <video>
B. <audio>
C. <embed>
D. <track>
Correct Answer:
A
Chapter: 127
Q1445:
What HTML5 element is used to define tracks for <video> and <audio>?
A. <source>
B. <track>
C. <media>
D. <embed>
Correct Answer:
B
Chapter: 127
Q1446:
Fill in the blank: The attribute syntax <input type="text" value=John> in HTML5 is an example of _______.
A. Empty
B. Unquoted
C. Single-quoted
D. Double-quoted
Correct Answer:
B
Chapter: 127
Q1447:
Which element is used in HTML5 to define containers for external applications like plug-ins?
A. <audio>
B. <embed>
C. <source>
D. <video>
Correct Answer:
B
Chapter: 128
Q1448:
Which of the following is an example of a non-semantic element in HTML5?
A. <header>
B. <section>
C. <div>
D. <article>
Correct Answer:
C
Chapter: 128
Q1449:
Fill in the blank: The <section> element in HTML5 is used to define a _______ in a document.
A. header
B. thematic grouping
C. navigation section
D. sidebar
Correct Answer:
B
Chapter: 128
Q1450:
What is the primary purpose of using semantic elements in HTML5?
A. To add CSS styles
B. To improve SEO
C. To clearly describe the meaning of content
D. To improve loading speed
Correct Answer:
C
Chapter: 128
Q1451:
Which HTML5 element is used to define navigation links?
A. <footer>
B. <nav>
C. <aside>
D. <header>
Correct Answer:
B
Chapter: 128
Q1452:
Fill in the blank: The <figcaption> element in HTML5 is used to define a _______ for a <figure> element.
A. title
B. caption
C. summary
D. description
Correct Answer:
B
Chapter: 128
Q1453:
What is an appropriate use of the <article> element in HTML5?
A. Defining a blog post
B. Defining a sidebar
C. Defining a navigation menu
D. Defining a footer
Correct Answer:
A
Chapter: 128
Q1454:
Which HTML5 element should be used to define a header for a section or document?
A. <header>
B. <footer>
C. <nav>
D. <aside>
Correct Answer:
A
Chapter: 128
Q1455:
Fill in the blank: In HTML5, the <footer> element should contain information about its _______ element.
A. navigation
B. containing
C. following
D. previous
Correct Answer:
B
Chapter: 128
Q1456:
Which semantic element would you use to define the main content of a web page in HTML5?
A. <article>
B. <section>
C. <main>
D. <header>
Correct Answer:
C
Chapter: 128
Q1457:
What is the W3C’s definition of a Semantic Web?
A. A web that allows data to be encrypted across platforms
B. A web that allows data to be shared and reused across applications
C. A web that uses only semantic elements
D. A web that is faster and more efficient
Correct Answer:
B
Chapter: 128
Q1458:
Which of the following elements was introduced in HTML5 to improve document structure?
A. <menu>
B. <section>
C. <frame>
D. <center>
Correct Answer:
B
Chapter: 128
Q1459:
Fill in the blank: The <nav> element in HTML5 is specifically used for _______ links.
A. social
B. navigation
C. footer
D. header
Correct Answer:
B
Chapter: 128
Q1460:
Which HTML5 element should be used to define content that is related to the surrounding content but is placed aside?
A. <footer>
B. <aside>
C. <header>
D. <article>
Correct Answer:
B