About and History of Python

What does HTML stand for?

a) HyperText Markup Language
b) Hyperlink and Text Markup Language
c) HyperText Markup Logic
d) High-Level Markup Language

Answer: a)  HyperText Markup Language
Explanation: HTML stands for HyperText Markup Language, which is the standard markup language for creating web pages.

Q2.Which HTML tag is used to define the document type?

a) <html>
b) <body>
c) <doctype>
d) <head>

Answer: c) <doctype>

Explanation: The <doctype> tag is used to define the document type and should be placed at the very beginning of an HTML document.

Q3.Which HTML tag is used to define the title of a webpage?

a) <head>
b) <title>
c) <h1>
d) <meta>

Answer: b) <title>

Explanation: The <title> tag is used to define the title of a webpage, which is displayed in the browser’s title bar or tab.

Q4.Which HTML tag is used to create a hyperlink?
a) <link>
b) <a>
c) <href>
d) <hyperlink>

Answer: b) <a>
Explanation: The <a> tag is used to create a hyperlink in HTML. The “href” attribute is used to specify the destination URL.

 

Q5. Which HTML tag is used to create a line break?

a) <br>
b) <lb>
c) <break>
d) <line>

Answer: a) <br>

Explanation: The <br> tag is used to create a line break or a new line within a paragraph in HTML.

Q6. Which HTML tag is used to define an unordered list?

a) <ul>
b) <li>
c) <ol>
d) <list>

Answer: a) <ul>

Explanation: The <ul> tag is used to define an unordered list in HTML, where each list item is represented by the <li> tag.

Q7. Which HTML tag is used to insert an image?

a) <img>
b) <picture>
c) <src>
d) <image>

Answer: a) <img>

Explanation: The <img> tag is used to insert an image in HTML. The “src” attribute is used to specify the image source.

Q8.Which HTML tag is used to define a table row?

a) <table>
b) <tr>
c) <td>
d) <th>

Answer: b) <tr>

Explanation: The <tr> tag is used to define a table row in HTML, where each cell is represented by the <td> or <th> tag.

Q9. Which HTML tag is used to emphasize text?

a) <b>
b) <strong>
c) <i>
d) <em>

Answer: d) <em>

Explanation: The <em> tag is used to emphasize text in HTML, typically displayed in italics by default.

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

a) <p>
b) <par>
c) <para>
d) <text>

Answer: a) <p>

Explanation: The <p> tag is used to define a paragraph in HTML, representing a block of text.

Q11. Which HTML tag is used to define a heading?

a) <h>
b) <header>
c) <heading>
d) <h1> to <h6>

Answer: d) <h1> to <h6>

Explanation: The <h1> to <h6> tags are used to define headings in HTML, with <h1> being the highest level and <h6> being the lowest.

Q12. Which HTML tag is used to include external CSS stylesheets?

a) <style>
b) <script>
c) <css>
d) <link>

Answer: d) <link>

Explanation: The <link> tag is used to include external CSS stylesheets in HTML, allowing you to separate the styling from the HTML document.

Q13. Which HTML tag is used to play audio files?

a) <audio>
b) <sound>
c) <music>
d) <play>

Answer: a) <audio>

Explanation: The <audio> tag is used to embed audio files in HTML, supporting various audio formats.

Q14. Which HTML tag is used to insert a line break without a space?

a) <lb>
b) <br>
c) <break>
d) <newline>

Answer: a) <lb>

Explanation: There is no <lb> tag in HTML. The <br> tag is used to insert a line break without a space.

Q15. Which HTML tag is used to create a numbered list?

a) <ol>
b) <ul>
c) <li>
d) <list>

Answer: a) <ol>

Explanation: The <ol> tag is used to create a numbered list in HTML, where each list item is represented by the <li> tag.

Q16. Which HTML tag is used to define a division or a section in a webpage?

a) <div>
b) <section>
c) <part>
d) <block>

Answer: a) <div>

Explanation: The <div> tag is used to define a division or a section in HTML, allowing you to group and style content.

Q17. Which HTML tag is used to define a form?

a) <form>
b) <input>
c) <submit>
d) <field>

Answer: a) <form>

Explanation: The <form> tag is used to define a form in HTML, which can contain various input fields and controls.