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
1. Edit the docker.service file vi /usr/lib/syste...
Context definition and purpose Context provides a...
Table of contents Two major categories of functio...
User table, ID number must be unique, mobile phon...
Table of contents Preface Method 1: High contrast...
1. Installation environment Docker supports the f...
Preface Students who learn JavaScript know that A...
Vue card flip carousel display, while switching d...
Automatically discover disks Configuration Key Va...
Table of contents Nginx proxies two socket.io ser...
1. ip_hash: ip_hash uses a source address hash al...
Preface In the previous article, we mainly learne...
This document records the installation and config...
I upgraded my Raspberry Pi server to Ubuntu 20 tw...
1》Be good at web design 2》Know how to design web p...