What does height mean in html5

WBOY
Release: 2021-12-31 10:30:25
Original
6267 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template