"."/> ".">

Home  >  Article  >  Web Front-end  >  What does height mean in html5

What does height mean in html5

WBOY
WBOYOriginal
2021-12-31 10:30:256258browse

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 "".

What does height mean in html5

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:

What does height mean in html5

##Recommended tutorial: "

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn