Home  >  Article  >  Web Front-end  >  How to create a hyperlink in html

How to create a hyperlink in html

藏色散人
藏色散人Original
2021-03-26 11:01:2027413browse

How to create a hyperlink in html: First create an HTML sample file; then create an a tag and write the text to click to jump to; then write href after a, and write jump after href Forward the link; finally run the HTML file.

How to create a hyperlink in html

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

The first step is to create a new HTML document. Here you can see that this is a very ordinary HTML code.

How to create a hyperlink in html

##The second step is to write "www.baidu.com" in the middle of . The purpose of writing this is for us to read later. Clicking on this text will jump to the page.

How to create a hyperlink in html

The third step is to put a space after the a in , and then write href in it.

How to create a hyperlink in html

The fourth step, we need to write this code:
www.baidu.com< ;/a>, what is written after href is the link

How to create a hyperlink in html

Step 5, open this HTML file, we can see that there is "www.baidu.com" "Text.

How to create a hyperlink in html

#The sixth step, after we click on this text, we can open Baidu's website. Isn't it very simple?

How to create a hyperlink in html

[Recommended tutorial: "

html video tutorial"][Recommended tutorial: CSS video tutorial]

The above is the detailed content of How to create a hyperlink 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