Logo
แผนที่ที่สร้างขึ้นเฉพาะสำหรับ Pro Plan ควิซ
ควิซถูกล็อกเนื่องจาก แผน PRO หมดอายุ
thubnail
สนามสายรุ้ง
เรียงลำดับ
Basic HTML
Mr. Nathan
53
ปัญหาที่เพิ่มเข้ามา (20/ 20)
อนุญาตให้คำตอบที่ไม่ถูกต้อง
ซ่อนคำตอบ
public quiz

ปัญหา 1

เลือกประเภท

Which HTML element is used to define the title of a document?

  • <title>
  • <header>
  • <head>
  • <meta>

ปัญหา 2

เลือกประเภท

True or False: The <footer> element is used to define the header of a webpage.

  • True
  • False

ปัญหา 3

เลือกประเภท

Analyze the following HTML snippet: <p id='intro'>Hello, World!</p>. What is the purpose of the 'id' attribute?

  • To style the paragraph
  • To uniquely identify the element
  • To link to an external resource
  • To define the element's class

ปัญหา 4

เลือกประเภท

What is the primary purpose of the <body> tag in an HTML document?

  • To define the document's metadata
  • To link to CSS files
  • To contain the document's visible content
  • To import scripts

ปัญหา 5

เลือกประเภท

True or False: The <img> tag requires a closing tag.

  • True
  • False

ปัญหา 6

เลือกประเภท

In the following story, identify the HTML tag used: 'Once upon a time, there was a webpage with a list of items neatly organized.' Which tag is commonly used for lists?

  • <div>
  • <ul>
  • <span>
  • <p>

ปัญหา 7

เลือกประเภท

Which of the following elements is used to create a hyperlink in HTML?

  • <link>
  • <a>
  • <href>
  • <nav>

ปัญหา 8

เลือกประเภท

True or False: The <strong> tag is used to italicize text.

  • True
  • False

ปัญหา 9

เลือกประเภท

Analyze the following HTML snippet: <div class='container'>Content here</div>. What does the 'class' attribute do?

  • Defines the element's ID
  • Applies styles to the element
  • Links to an external stylesheet
  • Creates an internal script

ปัญหา 10

เลือกประเภท

In a story about a webpage, the main character decides to add a background color. Which CSS property should they use?

  • color
  • background-color
  • border
  • font-family

ปัญหา 11

เลือกประเภท

Is this a complete HTML document? html <!DOCTYPE html> <html> <head> <title>Sample Page</title> </head> <body> <h1>Hello, World!</h1>

  • Yes, it's complete.
  • No, it is missing the closing </body> and </html> tags.
  • No, it is missing a DOCTYPE declaration.
  • No, it is missing a <head> section.

ปัญหา 12

เลือกประเภท

What is missing in this HTML snippet to make it a valid HTML5 document? html <html> <head> <title>My Page</title> </head> <body> <p>Welcome to my page!</p> </body> </html>

  • A <meta> tag in the <head> section.
  • A DOCTYPE declaration.
  • The <html> tag should have a lang attribute.
  • An external CSS link.

ปัญหา 13

เลือกประเภท

What is incorrect in the following HTML code? html <!DOCTYPE html> <html> <head> <title>My Website</title> </head> <body> <h2>About Me</h1> </body> </html>

  • The <h2> tag is not closed properly.
  • The <title> tag should be outside of the <head>.
  • The <body> tag is missing a closing tag.
  • The <html> tag is missing a lang attribute.

ปัญหา 14

เลือกประเภท

Identify the error in the following HTML code: html <!DOCTYPE html> <html> <head> <title>Document</title> </head> <body> <p>This is a paragraph. <p>This is another paragraph.</p> </body> </html>

  • The <p> tag is not closed in the first paragraph.
  • The <title> tag is in the wrong position.
  • The <head> section is incomplete.
  • The DOCTYPE declaration is incorrect.

ปัญหา 15

เลือกประเภท

Which attribute is needed to make an HTML5 form element accessible? html <form> <input type="text" name="username"> </form>

  • id
  • class
  • label
  • aria-label

ปัญหา 16

เลือกประเภท

What is the purpose of the <meta charset="UTF-8"> tag in the HTML <head> section?

  • To specify the character encoding for the HTML document.
  • To define the viewport settings for mobile devices.
  • To link external stylesheets.
  • To specify the language of the document.

ปัญหา 17

เลือกประเภท

In the context of HTML forms, what does the 'action' attribute define?

  • The method of form submission.
  • The URL to send form data to.
  • The type of data input.
  • The CSS style applied to the form.

ปัญหา 18

เลือกประเภท

What is the correct way to embed a video in HTML5?

  • <video src="movie.mp4" controls></video>
  • <embed src="movie.mp4" controls>
  • <media src="movie.mp4" controls>
  • <video href="movie.mp4" controls></video>

ปัญหา 19

เลือกประเภท

How can you make the text 'Hello World' bold using HTML?

  • <bold>Hello World</bold>
  • <strong>Hello World</strong>
  • <bld>Hello World</bld>
  • <b>Hello World</b>

ปัญหา 20

เลือกประเภท

What is the main difference between <section> and <div> elements in HTML5?

  • <section> is used for semantic content, while <div> is for styling.
  • <div> is more SEO friendly.
  • <section> cannot be styled with CSS.
  • <div> is used exclusively for header elements.
การแชร์ Google Classroom