Home >Web Front-end >HTML Tutorial >HTML production of mixed graphics and text effects
Introduction to image attributes:
(Learning video sharing: html video tutorial)
hspace and vspace attributes can set images surrounding space.
The hspace attribute can set or return the hspace attribute value of the image.
The hspace attribute specifies the margins on the left and right edges of the image (set the distance between the image and the left and right edges of the text)
The vspace attribute specifies the margins on the top and bottom of the image.
Note: HTML5 does not support the vspace attribute. Please use CSS instead. The vspace attribute is deprecated in HTML 4.01.
Implementation code:
这里写代码片 <h1 align="left"> <b>案例说明:图文混排效果</b> </h1> <p>出租车司机彭某回忆道。神色慌张的女子,哭闹不停的婴儿。</p> <a target="_blank" href="1.html"> <img src="../img/html02.jpg" style="max-width:90%" border="1px black solid" hspace="20px" align="left" / alt="HTML production of mixed graphics and text effects" > </a>
Implementation effect:
##Related recommendations:The above is the detailed content of HTML production of mixed graphics and text effects. For more information, please follow other related articles on the PHP Chinese website!