Home  >  Article  >  Web Front-end  >  How to add pictures in html

How to add pictures in html

coldplay.xixi
coldplay.xixiOriginal
2021-04-26 14:26:2795797browse

How to add a picture to html: First open the editor and create a new img tag; then add the address of an image to the attribute [src] of the img tag; finally drag the html file into the browser.

How to add pictures in html

The operating environment of this tutorial: Windows 7 system, Sublime Text version 3, DELL G3 computer.

htmlHow to add pictures:

Click to open the html editor sublime_text, the details are as shown below

How to add pictures in html

us Create an html file, and then [Create an img tag], as shown in the figure below

How to add pictures in html

After creating the img tag, we add the address of an image to the attribute [src] of the img tag 】, the details are as shown below

How to add pictures in html

We drag the html file into the browser, and then you can view the effect of adding the image, as shown in the details below.

How to add pictures in html

Related learning recommendations: html video tutorial

The above is the detailed content of How to add pictures in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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