---Restore content begins---
1. Image tag
<img src = "Address of the picture" alt = "Text to be replaced when the picture cannot be displayed title = "Text displayed when the mouse is placed on the picture"
path { 1. Absolute path: f:// Folder/a.jpg 2. Relative path: {
/: window drive letter, root
path./: the current directory (folder) can be omitted or not written
../: the upper-level directory
(relative to the location of html for reference)
Such as absolute path:
<img src="../1.jpg" alt="2" title="You met me">
}
2. Hyperlink label:
<a href="You
want to connect relative path, absolute path, network path https://www.baidu.com">
Click</a>
How to open the link:
target: _blank Open in a new window page
_self Jump in the current page (default)
Such as connecting to the external interface:
<a href="https.www.baidu.com" target="_blank" titile="this interface">click</a>
The download function of hyperlinks:
href: can only write files that cannot be parsed by
web pages Only provide download functions if the web pages cannot be parsed.
zip .rar compressed files
<a href="1.zip">点击</a>
The webpage pops up the download page (pay attention to the browser)
3. Anchor connection:
1. Set the tag (anchor)
<a name = "tag value"></a>
2. Set the connection (when I click the link, I will return to the anchor)
<a href="#tag value "></a>
Such as <a name="top">top (optional)</a>
<a href="#top">快上去</a>
---End of recovery content---
Reprinted in: https://www.cnblogs.com/a199706/p/11008770.html