Home > Article > Web Front-end > How to create a hyperlink in html
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.
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.
##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. The third step is to put a space after the a in , and then write href in it. The fourth step, we need to write this code: www.baidu.com< ;/a>, what is written after href is the link Step 5, open this HTML file, we can see that there is "www.baidu.com" "Text. #The sixth step, after we click on this text, we can open Baidu's website. Isn't it very simple? [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!