当前位置:网站首页>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
边栏推荐
- 启牛商学院和微淼商学院哪个靠谱?老师推荐的开户安全吗?
- TFrecord写入与读取
- 2年功能测试,却感觉自己什么都不会,2022我该何去何从?
- 完啦,上班三个月,变秃了
- 还不懂mock测试?一篇文章带你熟悉mock
- How to resolve a domain name to multiple IP addresses?
- What is partition and barrel division?
- How to call the size of two numbers with a function--- Xiao Tang
- Open source RSS subscriber freshrss
- SQL中in的用法 DQL 查询
猜你喜欢

QML module not found

Sofa weekly | open source person - Niu Xuewei, QA this week, contributor this week

What is partition and barrel division?

Open source RSS subscriber freshrss

Summary of function test points of wechat sending circle of friends on mobile terminal

JMeter websocket interface test

The second short contact of gamecloud 1608

Animation curves are used every day. Can you make one by yourself? After reading this article, you will!

Imitation Tiktok homepage interface

如何实现一个App应用程序,限制用户时间使用?
随机推荐
C语言:随机生成数+选择排序
在腾讯干软件测试3年,7月无情被辞,想给划水的兄弟提个醒...
[go basics 02] the first procedure
Square root of X
字节跳动技术面都过了,结果还是被刷了,问HR原因竟是。。。
Randomly generate 10 (range 1~100) integers, save them to the array, and print the array in reverse order. And find the average value, the maximum value and the subscript of the maximum value, and fin
c sqlite ... ...
Redis memory elimination mechanism?
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
D3.js 学习
Having met a tester with three years' experience in Tencent, I saw the real test ceiling
虚拟内存与磁盘
Redis内存淘汰机制?
ThreadLocal 总结(未完待续)
4day
TFrecord写入与读取
The automation testing post spent 20K recruiting, but in the end, there was no suitable one. Both fresh students are better than them
Unity performance optimization direction
vim用法记录
[C syntax] void*