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
3
Answer:
The correct answer is pixels
Answered by
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
Social Sciences,
3 months ago
Math,
3 months ago
Accountancy,
8 months ago
Business Studies,
8 months ago
Math,
1 year ago