Image tag : <img> To insert an image into a page, we need to use the "img" tag, whose attribute is "src" Example code: <img src="test.jpg"> in conclusion: ![]() Here we assume that the image files and html files 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: Correctly display the image in the web page by using the width and height properties. Example code: <img src="test.jpg" width=100 height=100> in conclusion: ![]() Alignment: We can align the image using the "align" property. Set the property value to: left/right/center 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教程"> in conclusion: ![]() frame: We can set a border around the image using the "border" property. This can be used to create space around an image. Example code: <img src="test.jpg" _fcksavedurl=""test.jpg"" _fcksavedurl=""test.jpg"" _fcksavedurl=""test.jpg"" _fcksavedurl=""test.jpg"" _fcksavedurl=""test.jpg"" border=4> in conclusion: ![]() |
<<: JS implements the dragging and placeholder functions of elements
>>: Implementation of Mysql User Rights Management
Related article: Beginners learn some HTML tags (1...
1. Framework A browser document window can only d...
Table of contents Implementation effect diagram I...
Let's take a look at the command to restart t...
system: CentOS 7 RPM packages: mysql-community-cl...
We deal with Linux servers every day, especially ...
1. Introduction Why do we need indexes? In genera...
Preface This article records how I use docker-com...
The definition and inheritance of classes in JS a...
I recently bought the cheapest Tencent cloud serv...
When we write some UI components, if we don't...
export default ({ url, method = 'GET', da...
1. Download the installation script - composer-se...
Table of contents 1. Introduction 2. Implementati...
How to define complex components (class component...