KEMBAR78
HTML MCQ | PDF | Html Element | Hyperlink
0% found this document useful (0 votes)
29 views9 pages

HTML MCQ

Uploaded by

usha23nc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views9 pages

HTML MCQ

Uploaded by

usha23nc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

1. What does HTML stand for?

A) HyperText Markup Language


B) HyperText Modeling Language
C) HyperText Multilayer Language
D) HyperText Marking Language

Answer: A) HyperText Markup Language

2. Which HTML tag is used to define a paragraph?


A) <p>
B) <paragraph>
C) <para>
D) <text>

Answer: A) <p>

3. Which tag is used to create a line break?


A) <break>
B) <line>
C) <br>
D) <hr>

Answer: C) <br>

4. Which HTML tag is used for a hyperlink?


A) <a>
B) <link>
C) <href>
D) <url>

Answer: A) <a>

5. Which attribute of the <a> tag specifies the URL?


A) src
B) href
C) link
D) url

Answer: B) href

6. Which tag is used to insert an image?


A) <img>
B) <picture>
C) <photo>
D) <image>
Answer: A) <img>

7. Which attribute is required in the <img> tag?


A) alt
B) title
C) src
D) href

Answer: C) src

8. How do you create an unordered list in HTML?


A) <ol>
B) <ul>
C) <list>
D) <dl>

Answer: B) <ul>

9. Which tag is used to define a list item?


A) <li>
B) <item>
C) <list>
D) <liitem>

Answer: A) <li>

10. Which tag is used to define a table?


A) <table>
B) <tab>
C) <tr>
D) <td>

Answer: A) <table>

11. What tag defines a table row?


A) <tr>
B) <row>
C) <tablerow>
D) <td>

Answer: A) <tr>

12. What tag defines a table cell?


A) <td>
B) <cell>
C) <tablecell>
D) <row>

Answer: A) <td>

13. Which tag is used to define a form?


A) <form>
B) <input>
C) <button>
D) <submit>

Answer: A) <form>

14. Which attribute in the <form> tag specifies where to send the form data?
A) action
B) method
C) type
D) target

Answer: A) action

15. What is the default method for sending form data?


A) POST
B) GET
C) PUT
D) DELETE

Answer: B) GET

16. Which tag is used to create an input field?


A) <input>
B) <textfield>
C) <form>
D) <button>

Answer: A) <input>

17. Which type of input does <input type="text"> create?


A) A button
B) A text box
C) A checkbox
D) A radio button

Answer: B) A text box

18. Which tag is used to create a button?


A) <button>
B) <btn>
C) <input>
D) <click>

Answer: A) <button>

19. Which tag is used to create a line break?


A) <break>
B) <line>
C) <br>
D) <hr>

Answer: C) <br>

20. Which tag is used to define the title of an HTML document?


A) <title>
B) <head>
C) <meta>
D) <header>

Answer: A) <title>

21. Which tag is used to define the header section of an HTML document?
A) <header>
B) <head>
C) <footer>
D) <nav>

Answer: B) <head>

22. What does the <meta> tag do?


A) Adds metadata to the document
B) Defines a link to a stylesheet
C) Creates a new section
D) Defines a clickable link

Answer: A) Adds metadata to the document

23. Which HTML tag is used for a block of code?


A) <code>
B) <script>
C) <pre>
D) <textarea>

Answer: C) <pre>
24. Which tag is used to display a block of preformatted text?
A) <pre>
B) <code>
C) <text>
D) <block>

Answer: A) <pre>

25. What tag is used to create a text area in a form?


A) <textarea>
B) <input>
C) <field>
D) <box>

Answer: A) <textarea>

26. Which tag is used to define a section of navigation links?


A) <nav>
B) <links>
C) <menu>
D) <footer>

Answer: A) <nav>

27. What does the <strong> tag do?


A) Makes text bold
B) Emphasizes text
C) Creates a section
D) Defines a hyperlink

Answer: A) Makes text bold

28. Which tag is used to define a footer for a document or section?


A) <footer>
B) <bottom>
C) <foot>
D) <end>

Answer: A) <footer>

29. Which tag is used to create a hyperlink?


A) <a>
B) <link>
C) <href>
D) <url>
Answer: A) <a>

30. What attribute specifies the URL in the <a> tag?


A) href
B) src
C) link
D) url

Answer: A) href

31. What is the purpose of the <div> tag?


A) Groups block elements together
B) Defines a hyperlink
C) Inserts an image
D) Creates a table

Answer: A) Groups block elements together

32. What tag is used to define a clickable button?


A) <button>
B) <click>
C) <submit>
D) <input>

Answer: A) <button>

33. Which tag is used to create an ordered list?


A) <ol>
B) <ul>
C) <list>
D) <dl>

Answer: A) <ol>

34. Which tag is used to define a list item in an ordered list?


A) <li>
B) <item>
C) <olitem>
D) <listitem>

Answer: A) <li>

35. What does the <em> tag do?


A) Emphasizes text
B) Creates a new section
C) Makes text bold
D) Inserts a line break

Answer: A) Emphasizes text

36. Which tag is used to create a table header cell?


A) <th>
B) <td>
C) <tr>
D) <header>

Answer: A) <th>

37. Which tag is used to group inline elements together?


A) <span>
B) <div>
C) <group>
D) <block>

Answer: A) <span>

38. Which tag is used to define a description list?


A) <dl>
B) <list>
C) <description>
D) <details>

Answer: A) <dl>

39. Which tag defines a term in a description list?


A) <dt>
B) <term>
C) <item>
D) <listterm>

Answer: A) <dt>

40. Which tag defines a description in a description list?


A) <dd>
B) <desc>
C) <description>
D) <data>

Answer: A) <dd>

41. What attribute in the <img> tag specifies an alternative text?


A) alt
B) title
C) src
D) desc

Answer: A) alt

42. What does the <hr> tag create?


A) A horizontal line
B) A heading
C) A new paragraph
D) An image

Answer: A) A horizontal line

43. Which tag is used to create a new section in HTML5?


A) <section>
B) <div>
C) <article>
D) <container>

Answer: A) <section>

44. Which tag is used to define a container for content?

A) <box>
B) <div>
C) <container>
D) <section>

Answer: A) <div>

45. What attribute is used to specify a class for an HTML element?


A) class
B) id
C) style
D) type

Answer: A) class

46. Which tag is used to display text with a smaller font size?
A) <small>
B) <tiny>
C) <font>
D) <text>
Answer: A) <small>

47. What tag is used to create a form control, such as a text box?
A) <input>
B) <text>
C) <form>
D) <field>

Answer: A) <input>

48. Which tag is used to define the language of the document?


A) <html lang="en">
B) <document lang="en">
C) <html language="en">
D) <head lang="en">

Answer: A) <html lang="en">

49. Which HTML tag is used to include JavaScript code?


A) <script>
B) <js>
C) <code>
D) <java>

Answer: A) <script>

50. Which HTML tag is used to include a CSS stylesheet?


A) <link>
B) <style>
C) <css>
D) <script>

Answer: A) <link>

You might also like