"."/> ".">
Home > Article > Web Front-end > What does height mean in html5
In HTML, height means "height". The height attribute is used to set the height value of an element. You can either use px, cm and other units to define the height, or you can use it based on the block-level object that contains it. Percentage defines the height, and the syntax is "
".
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
#What does height mean in html5
height means height.
The height attribute sets the height of the element. This attribute defines the height of the element's content area, and padding, borders, and margins can be added outside the content area.
Inline non-replaced elements will ignore this attribute.
The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <img src="smiley.gif" alt="Smiley face" width="42" style="max-width:90%"> <img src="smiley.gif" alt="Smiley face" width="62" style="max-width:90%"> </body> </html>
Output result:
html video tutorial 》
The above is the detailed content of What does height mean in html5. For more information, please follow other related articles on the PHP Chinese website!