Computer Science, asked by Anonymous, 5 months ago

Which of the following units can be used to specify the value of height and width property in html? *
Percentage
Pixel
Both of these
None of these

Answers

Answered by PRO1ASH
3

Answer:

The correct answer is pixels

Answered by vishakasaxenasl
1

Answer:

Both Pixels and Percentage units can be used to specify the value of height and width properties in HTML.

So the correct answer is Both of these.

Explanation:

  • In HTML, we can specify the height and width of elements by using either pixels or percentages.
  • Height and width is specifically maintained for the purpose of making the website flexible and interactive among all the possible screen sizes.
  • Pixels are used in a case when the developer knows the exact size required for the element on every screen size.
  • While the percentage is a good option in the case of flexible design. It can take a value from 0 to 100%.
  • Sometimes, developers use pixels and percentages both in order to make the code more clean ad understandable.

#SPJ3

Similar questions