How to insert a link in html

How to insert a link in html

Each web page has an address, identified by a URL (). Usually when creating links within a website, relative addresses are used.

Internal Links

XML/HTML CodeCopy content to clipboard
  1. <   href = "Link address"   target = "How to open the target window (-self,-blank,-top,-parent)" > Description text </a> Anchor link

The same web page can have an unlimited number of anchors, but there cannot be two anchors with the same name.

XML/HTML CodeCopy content to clipboard
  1. <!--Create anchor point-->   
  2. <   name = "anchor name" > </ a >   
  3. <!--Link to the same page anchor-->   
  4. <   href = "#anchor name" > </ a >   
  5. <!--Link different page anchors-->   
  6. <   href = "link file address#anchor name" > </ a >   

Link to Email

<a href="mailto:email address"></a>

Link to ftp

<a href="ftp://ftp address"></a>

Link to telnet

<a href="telnet://address"></a>

Download File

<a href="File address"></a>

The above method of implementing HTML link insertion is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

<<:  How to remove the header from the element table

>>:  A brief analysis of MySQL's WriteSet parallel replication

Recommend

How to optimize logic judgment code in JavaScript

Preface The logical judgment statements we use in...

Teach you step by step to develop a brick-breaking game with vue3

Preface I wrote a few examples using vue3, and I ...

Detailed explanation of Vue monitoring attribute graphic example

Table of contents What is the listener property? ...

Implementation and optimization of MySql subquery IN

Table of contents Why is IN slow? Which is faster...

Vue3.x uses mitt.js for component communication

Table of contents Quick Start How to use Core Pri...

Docker Compose practice and summary

Docker Compose can realize the orchestration of D...

The process of deploying and running countly-server in docker in win10

I have just come into contact with and become fam...

When is it appropriate to use dl, dt, and dd?

dl:Definition list Definition List dt:Definition t...

mysql 5.7.19 latest binary installation

First download the zip archive version from the o...

MySQL horizontal and vertical table conversion operation implementation method

This article uses examples to illustrate how to i...

Example code for using @media in CSS3 to achieve web page adaptation

Nowadays, the screen resolution of computer monit...

MySQL statement arrangement and summary introduction

SQL (Structured Query Language) statement, that i...

Summary of common Linux distribution mirror source configuration

I have been researching Linux recently and tried ...

Three ways to prevent MySQL from inserting duplicate data

Create a new table CREATE TABLE `person` ( `id` i...

30 Tips for Writing HTML Code

1. Always close HTML tags In the source code of p...