Tag: web technology

Questions Related to web technology




Correct Option: D
Explanation:

To create a horizontal rule in HTML, we can use the <hr> tag.

Now let's go through each option and determine if it is the correct answer:

A. <b>: This tag is used to make text bold, not to create a horizontal rule. So, this option is incorrect.

B. </b><p>: This tag is used to create a paragraph, not a horizontal rule. Therefore, this option is incorrect.

C. <br>: This tag is used to insert a line break, not a horizontal rule. Hence, this option is incorrect.

D. </p><hr>: This tag is specifically used to create a horizontal rule. So, this option is the correct answer.

Therefore, the correct answer is D - <hr>.

  1. /* This is a comment */

  2. 'This is a comment

  3. //This is a comment


Correct Option: D

How to use style for an paragraph?

  1. style attribute

  2. class attribute

  3. id attribute

  4. name attribute


Correct Option: A