HTML tutorial: introduction to the method of modifying the border attribute of image size alignment interval

Time:2021-2-26

Image marking:<img>
To insert an image into a page, we need to use the “img” tag, whose attribute is “SRC”
For example, code:
<img src=”test.jpg”> 
Conclusion

Here we assume that the image file and the HTML file are in the same directory.
Similarly, we can give the full path of the image file.
For example:
<img src=”C:\images\test.jpg”> 
Width and height:
Correct the size of the image displayed in the web page by using the width and height in the properties.
For example, code:
<img src=”test.jpg” width=100 height=100> 
Conclusion

Alignment:
We can use “align” in the attribute to align the image.
Set the property value to: left / right / center
For example, code:
<img src=” test.jpg ” _ fcksavedurl=”” test.jpg “” _ fcksavedurl=”” test.jpg “” _ fcksavedurl=”” test.jpg “” _ fcksavedurl=”” test.jpg “” _ fcksavedurl=”” test.jpg “” align=left> <img src=” test.jpg “Align = right ALT =” HTML tutorial “>”
Conclusion

frame:
We can use “border” in the attribute to set the border around the image. This can be used to create space around the image.
For example, code:
<img src=”test.jpg” _fcksavedurl=””test.jpg”” _fcksavedurl=””test.jpg”” _fcksavedurl=””test.jpg”” _fcksavedurl=””test.jpg”” _fcksavedurl=””test.jpg”” border=4> 
Conclusion
HTML教程:修改图片大小对齐间隔边框属性