Mã html cho câu hỏi trắc nghiệm và câu trả lời

HTML là viết tắt của "Hyper Text Markup Language", đây là ngôn ngữ đánh dấu tiêu chuẩn để tạo trang web i. e. , để tạo một trang web. HTML mô tả cấu trúc của một trang web

MCQ HTML. Phần này chứa các câu hỏi trắc nghiệm HTML có câu trả lời. Các MCQ HTML này được viết cho người mới bắt đầu cũng như nâng cao, hãy thực hành các MCQ này để nâng cao và kiểm tra kiến ​​thức về HTML

Danh sách MCQ HTML

1. HTML là ____ngôn ngữ chuẩn để tạo các trang Web

  1. kịch bản
  2. lập trình
  3. kiểu dáng
  4. đánh dấu

Câu trả lời. D] đánh dấu

Giải trình

HTML là ngôn ngữ đánh dấu tiêu chuẩn để tạo các trang Web

Thảo luận câu hỏi này

2. HTML là viết tắt của_______

  1. Ngôn ngữ đánh dấu văn bản hiếu động
  2. Ngôn ngữ đánh dấu siêu văn bản
  3. Ngôn ngữ máy siêu văn bản
  4. không ai trong số này

Câu trả lời. B] Ngôn ngữ đánh dấu siêu văn bản

Giải trình

HTML là viết tắt của "Ngôn ngữ đánh dấu siêu văn bản"

Thảo luận câu hỏi này

3. Đâu là cú pháp chính xác để đưa nhận xét vào tài liệu HTML?

  1. //
  2. /* Bình luận */
  3. // Bình luận //

Câu trả lời. Đ]

Giải trình

Bạn có thể thêm nhận xét vào nguồn HTML của mình bằng cách sử dụng cú pháp sau,

Thảo luận câu hỏi này

4. Chúng tôi có thể ẩn nội dung bằng bình luận không?

Câu trả lời. A] Có

Giải trình

Có, các bình luận có thể được sử dụng để ẩn nội dung. Đây là cú pháp,

Thảo luận câu hỏi này

5. Chúng tôi có thể ẩn nội dung nội tuyến bằng nhận xét không?

Câu trả lời. A] Có

Giải trình

Có, các bình luận có thể được sử dụng để ẩn nội dung nội tuyến. Đây là cú pháp,

Hello, world! How are you?

Thảo luận câu hỏi này

6. Phần tử/thẻ nào xác định một đoạn văn?

  1. Không có điều nào ở trên

Câu trả lời. MỘT]

Giải trình

Các

thẻ/phần tử xác định một đoạn văn

Thảo luận câu hỏi này

7. Thẻ/phần tử nào xác định nội dung của tài liệu HTML?

Câu trả lời. Đ]

Giải trình

Phần tử xác định phần thân của tài liệu HTML

Thảo luận câu hỏi này

8. Thẻ nào chứa thông tin meta về trang HTML?

Answer: C]

Explanation:

The tag contains the meta information about the HTML page.

Discuss this Question

9. Which tag is the root element of an HTML page?

Answer: A]

Explanation:

The tag is the root element of an HTML page.

Discuss this Question

10. Who invented HTML?

  1. Dave Raggett
  2. Tim Berners-Lee
  3. Denis Ritchie
  4. All of the above

Answer: B] Tim Berners-Lee

Explanation:

Tim Berners-Lee invented HTML in 1991.

Discuss this Question

11. HTML tags with no content are called _____.

  1. Special tags
  2. Advanced tags
  3. Empty tags
  4. Other tags

Answer: C] Empty tags

Explanation:

HTML tags with no content are called empty tags. For example, the
tag, tag.

Discuss this Question

12. Nested HTML Elements are allowed in HTML?

Answer: A] Yes

Explanation:

Yes, Nested HTML Elements [

Some text

]are allowed in HTML.

Discuss this Question

13. Is HTML a case sensitive?

Answer: B] No

Explanation:

No, HTML is Not Case Sensitive.

Discuss this Question

14. HTML headings are defined with the _____ tags.

  1. to
  2. to
  3. to

  4. to

Answer: C]

to

Explanation:

HTML headings are defined with the

to tags.

Discuss this Question

15. Which tag is used to display a horizonal rule [horizonal line]?


  1. ...

Answer: B]

Explanation:

The tag is used to display a horizontal rule.

Discuss this Question

16. What is the correct syntax of tag?

  1. All of the above

Answer: A], and B]:

and

Explanation:

Both and can be used to display a horizonal line.

Discuss this Question

17. Which tag is used to define a line break?

Answer: C]

Explanation:

The
tag is used to define a line break.

Discuss this Question

18. What is the correct syntax of
tag?





  1. All of the above

Answer: A], and B]:
and

Explanation:

Both
and
can be used to display a line break.

Discuss this Question

19. Which tag is used to define preformatted text?

Answer: C]

Explanation:

The

 tag is used to define preformatted text.

Discuss this Question

20. Which HTML attribute is used to define styles of an element?

Answer: C] style

Explanation:

The style attribute is used to define the styles of an element.

Discuss this Question

21. Which is the correct HTML statement to define the red color of the paragraph text?

  1. Both A. and B.
  2. None of the above

Answer: C] Both A. and B.

Explanation:

The correct HTML statement to define red paragraph color is,

 

Discuss this Question

22. Which HTML tag is used to define bold text, without any extra importance?

Answer: D]

Explanation:

The HTML tag is used to define bold text, without any extra importance.

Discuss this Question

23. Which HTML tag is used to define text with strong importance?

Answer: A]

Explanation:

The HTML tag is used to define text with strong importance.

Discuss this Question

24. Which HTML tag is used to define italic text?

Answer: C]

Explanation:

The HTML tag is used to define italic text.

Discuss this Question

25. Which HTML tag is used to define emphasized text?

Answer: B]

Explanation:

The HTML tag is used to define emphasized text.

Discuss this Question

26. Which HTML tag is used to define smaller text?

Answer: D]

Explanation:

The HTML tag is used to define smaller text.

Discuss this Question

27. Which HTML tag is used to define marked or highlighted text?

Answer: A]

Explanation:

The HTML tag is used to define marked or highlighted text.

Discuss this Question

28. Which HTML tag is used to define strike a line through deleted text?

Answer: B]

Explanation:

The HTML tag is used to define strike a line through deleted text.

Discuss this Question

29. Which HTML tag is used to define underline inserted text?

Answer: D]

Explanation:

The HTML tag is used to define underline inserted text.

Discuss this Question

30. Which HTML tag is used to define subscript text?

Answer: A]

Explanation:

The HTML tag is used to define subscript text.

Discuss this Question

31. Which HTML tag is used to define superscript text?

Answer: A]

Explanation:

The HTML tag is used to define superscript text.

Discuss this Question

32. Which is the correct HTML statement to display H2O in a paragraph?

  1. H2O

  2. H2O

  3. H2O

  4. H2O

Answer: D]

H2O

Explanation:

The correct HTML statement to display H2O in a paragraph is:

H2O

Discuss this Question

33. Which is the correct HTML statement to display HelloWorld in a paragraph?

  1. HelloWorld

  2. HelloWorld

  3. HelloWorld

  4. HelloWorld

Answer: A]

HelloWorld

Explanation:

The correct HTML statement to display HelloWorld in a paragraph is:

HelloWorld

Discuss this Question

34. Which is the correct HTML statement to display HelloHi! in a paragraph?

  1. HelloHi!

  2. HelloHi!

  3. HelloHi!

  4. All of the above

Answer: A], and B]:

HelloHi!

HelloHi!

Explanation:

The correct HTML statement to display HelloHi! in a paragraph is/are:

HelloHi!

HelloHi!

Discuss this Question

35. Which is the correct HTML statement to display Hello IncludeHelp in a paragraph?

  1. Hello IncludeHelp

  2. HelloIncludeHelp

  3. Hello IncludeHelp

  4. HelloIncludeHelp

Answer: B]

HelloIncludeHelp

Explanation:

The correct HTML statement to display Hello IncludeHelp in a paragraph is:

Hello IncludeHelp

Discuss this Question

36. Which HTML tag is used to define a short quotation?

Answer: D]

Explanation:

The HTML tag is used to define a short quotation.

Discuss this Question

37. Which HTML tag is used to define an abbreviation or an acronym?

Answer: B]

Explanation:

The HTML tag is used to define an abbreviation or an acronym.

Discuss this Question

38. What is the correct HTML syntax of tag?

  1. Text
  2. Text
  3. Text
  4. Text

Answer: A] Text

Explanation:

The correct HTML syntax of tag is,

 Text 

Discuss this Question

39. What HTML tag is used to define the contact information for the author/owner of a document or an article?

Answer: C]

Explanation:

The HTML tag is used to define the contact information for the author/owner of a document or an article.

Discuss this Question

40. Which tag is used to override the current text direction?

  1. None of the above

Answer: B]

Explanation:

The HTML tag is used to override the current text direction.

Discuss this Question

41. Which HTML tag is used to define a hyperlink?

  1. Discuss this Question

    42. Which is the correct syntax of link text

  2. link text

    Explanation:

    The correct syntax to create a hyperlink is,

     Text 

    Discuss this Question

    43. Why "href" attribute is used with Discuss this Question

    44. Which ____ attribute specifies where to open the linked document?

    Answer: D] target

    Explanation:

    The “target” attribute specifies where to open the linked document.

    Discuss this Question

    45. Which tag is used to embed an image in an HTML document?

    1. All of the above

    Answer: D] All of the above

    Explanation:

    The correct syntax of

We can also use,

    

Discuss this Question

47. Which attribute specifies the path to the image?

  1. href
  2. link
  3. src
  4. All of the above

Answer: C] src

Explanation:

The src attribute specifies the path to the image.

Discuss this Question

48. Which attribute specifies an alternate text for the image?

  1. alt
  2. alternate
  3. alttext
  4. All of the above

Answer: B] alternate

Explanation:

The alternate attribute specifies an alternate text for the image.

Discuss this Question

49. Which HTML tag is used to define a table?

Answer: A]

Explanation:

The HTML tag

is used to define a table.

Discuss this Question

50. Each table cell is defined by a ____ tag.

  1. ..
..
  • ..
  • Answer: D]

    Explanation:

    Each table cell is defined by a

    tag.

    Discuss this Question

    51. Each table row is defined by a ____ tag.

    1. ..
    ..
  • ..
  • Answer: B]

    ..

    Explanation:

    Each table row is defined by a

    and a tag.

    Discuss this Question

    52. Each table header is defined by a ____ tag.

    1. ..
    ..
  • ..
  • Answer: C] ..

    Explanation:

    Each table header is defined by a and a tag.

    Discuss this Question

    53. Which tag is used to define ordered listing?

      1. ..
      • ..
    1. ..
    2. ..

    Answer: A]

      ..

    Explanation:

    The HTML tag

      ..
    is used to define ordered listing.

    Discuss this Question

    54. Which tag is used to define unordered listing?

      1. ..
      • ..
    1. ..
    2. ..

    Answer: B]

      ..

    Explanation:

    The HTML tag

      ..
    is used to define unordered listing.

    Discuss this Question

    55. Which tag is used to define list items?

      1. ..
      • ..
    1. ..
    2. ..

    Answer: D]

  • ..
  • Explanation:

    The HTML tag

  • ..
  • is used to define list items.

    Discuss this Question

    56. Which tag is used to define description lists?

    1. ..
    2. ..
    3. ..
    4. ..

    Answer: A] ..

    Explanation:

    The HTML tag .. is used to define description lists.

    Discuss this Question

    57. Which tag is a block-level element?

    1. ..
    2. ..
    3. ..
    4. ..

    Answer: C]

    ..

    Explanation:

    The HTML tag

    ..
    is a block-level element.

    Discuss this Question

    58. Which attribute is often used to point to a class name in a style sheet?

    Answer: D] class

    Explanation:

    The class attribute is often used to point to a class name in a style sheet.

    Discuss this Question

    59. Which attribute is used to specify a unique id for an HTML element?

    Answer: C] id

    Explanation:

    The HTML id attribute is used to specify a unique id for an HTML element.

    Discuss this Question

    60. Can we use class name with multiple HTML elements?

    Answer: A] Yes

    Explanation:

    Yes, we can use class name with multiple HTML elements.

    Discuss this Question

    61. Can we use id attribute with multiple HTML elements?

    Answer: B] No

    Explanation:

    No, we cannot use id attribute with multiple HTML elements.

    Discuss this Question

    62. Which tag specifies an inline frame?

    Answer: B]

    Explanation:

    The HTML tag specifies an inline frame.

    Discuss this Question

    63. What is the correct syntax for tag?

    1. All of the above

    Answer: C]

    Explanation:

    The correct syntax for tag is,

      

    Discuss this Question

    64. Which tag is used to create an HTML form for user input?

    Answer: A]

    Explanation:

    The HTML tag is used to create an HTML form for user input.

    Discuss this Question

    65. Which tag is used to display a single-line text input field?

    Answer: C]

    Explanation:

    The HTML tag is used to display a single-line input field.

    Discuss this Question

    66. Which tag is used to display a radio button?

    Answer: D]

    Explanation:

    The HTML tag is used to display a radio button.

    Discuss this Question

    67. Which tag is used to display a checkbox?

    Answer: B]

    Explanation:

    The HTML tag is used to display a checkbox.

    Discuss this Question

    68. Which tag is used to display a submit button?

    Answer: A]

    Explanation:

    The HTML tag is used to display a submit button.

    Discuss this Question

    69. Which tag is used to display a clickable button?

    Answer: D]

    Explanation:

    The HTML tag is used to display a clickable button.

    Discuss this Question

    70. Which input type reset defines a reset button that will reset all form values to their default values?

    1. clear
    2. clear:both
    3. reset
    4. refresh

    Answer: C] reset

    Explanation:

    The reset input type reset defines a reset button that will reset all form values to their default values. Here is the syntax,

      

    Discuss this Question

    The reference is taken from HTML Tutorial

    Thẻ nào được sử dụng cho MCQS HTML?

    Thẻ là thành phần gốc của tài liệu HTML, có nghĩa là nó chứa tất cả nội dung và thẻ của HTML .

    Câu hỏi trắc nghiệm HTML là gì?

    Giải trình. HTML là từ viết tắt của HyperText Markup Language, được sử dụng để tạo các trang web và ứng dụng web. Siêu văn bản đơn giản có nghĩa là "Văn bản trong Văn bản. "Một văn bản có liên kết bên trong nó, là một siêu văn bản

    Mã HTML nào sau đây sẽ tạo MCQ có thể nhấp vào hình ảnh?

    Chủ Đề

    .. .. and a
    ..
    ..