当前位置:网站首页>Use of hyperlinks
Use of hyperlinks
2022-07-25 22:15:00 【Pillow said he didn't want to wake up】
Hyperlinks : Is one of the most common elements in a web page , The whole Internet is built on hyperlinks . Every website is made up of many pages , It can make every web page no longer independent , Connect various web pages , Form a network structure . The reason why the Internet can be called “ network ”, Because of the existence of hyperlinks .
One 、 The format is as follows :
<a href=" " target=""> Link text </a>among ,href Property is used to indicate where to jump ,target Property is used to indicate how the new page is opened , The link text needs to be written in <a> and </a> Between .
Two 、2 Features ,2 Attributes ,1 A supplement
Hyperlinks are inline elements , It can contain any element , Except that it can be a word by itself , It can also be a picture , Forms, etc
1、 The function of hyperlinks :
(1) Jump from one page to another
(2) Jump on the current page ( Do stair navigation )
(3) Download a software 、 Documents, etc.
2、 Properties of hyperlinks :
(1)href Point to the destination address of the jump
Code segment :
<a href="https://www.baidu.com/"> Baidu </a>Pictures show : After clicking

Absolute path and relative path (./ perhaps ../)target
(2)target Control how hyperlinks are opened
_self: The current page opens
Code segment :
<a href="https://www.baidu.com/" target="_self"> Baidu </a>Pictures show ( Before clicking ):

Pictures show ( After clicking ):

(3)_blank: The new page opens
Code segment :
<a href="https://www.baidu.com/" target="blank"> Baidu </a>Pictures show ( Before clicking ):

Pictures show ( After clicking ):

3、 Supplement of hyperlinks :
Anchor function :
Give the corresponding position , Set up a id attribute , stay href Attribute value , Write :#id Property value
<p><a href="#p2"> Go to the second picture </a></p>
( The middle code is omitted ....)
<img src="./ Homework 7img/ human world 2.jpeg" id="p2"><br>id Property value : Cannot start with a number , Better not use Chinese characters , It is a unique existence
边栏推荐
- Wet- a good choice for people with English difficulties - console translation
- Advanced database · how to add random data for data that are not in all user data - Dragonfly Q system users without avatars how to add avatar data - elegant grass technology KIR
- 完啦,上班三个月,变秃了
- How many bytes does Boolean occupy?
- El expression improves JSP
- Three ways to allocate disk space
- Visitor mode
- Jenkins+svn configuration
- 面了个腾讯三年经验的测试员,让我见识到了真正的测试天花板
- The second short contact of gamecloud 1608
猜你喜欢

Wechat applet application development competition works comprehensive development record - Jinlu cultural tourism (cloud development - Overview)

如何实现一个App应用程序,限制用户时间使用?
![[Fantan] how to design a test platform?](/img/54/5aca54c0e66f8a7c1c3215b8f06613.png)
[Fantan] how to design a test platform?

2年功能测试,却感觉自己什么都不会,2022我该何去何从?

Win10 set up a flutter environment to step on the pit diary

H5幸运刮刮乐抽奖 免公众号+直运营

The second short contact of gamecloud 1608

The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?

完啦,上班三个月,变秃了

Usage of in in SQL DQL query
随机推荐
Flex layout
2年功能测试,却感觉自己什么都不会,2022我该何去何从?
数学规划分类 Math Programming Classfication
The automation testing post spent 20K recruiting, but in the end, there was no suitable one. Both fresh students are better than them
What have I experienced to become a harder tester than development?
Ts:typera code fragment indentation display exception (resolved) -2022.7.24
SQL中in的用法 DQL 查询
还不懂mock测试?一篇文章带你熟悉mock
ThreadLocal 总结(未完待续)
如何实现一个App应用程序,限制用户时间使用?
6-18 vulnerability exploitation - backdoor connection
How to call the size of two numbers with a function--- Xiao Tang
JSP nine built-in objects
别投了,软件测试岗位饱和了...
SQL基本语句 DQL select与提取 DML插入删除
TS:typora代码片段缩进显示异常(已解决)-2022.7.24
Don't know mock test yet? An article to familiarize you with mock
Virtual memory and disk
JSP novice
[go basics 02] the first procedure