Home > Web Front-end > HTML Tutorial > Learn html step by step----Lesson 4

Learn html step by step----Lesson 4

黄舟
Release: 2016-12-20 14:38:40
Original
1049 people have browsed it

In this lesson, we mainly explain the problem of links: this can also be defined as a hypertext link, and the label is
The full name of this label is anchor, which means anchor in Chinese;
Example:
http://www.baidu.com">click!
A link will appear on the web page, and its text expression is the positive and negative tags Click! in the middle;
Process: When you click click!, the Baidu URL in the web server on the Internet will be displayed in the web browser, just like entering the address manually. Here is something to add Yes: Internet address is also called: Uniform Resource Locator, which is the URL that everyone sees more frequently;
When the linked web page is opened in a new browser window, an attribute value is added directly to the link: target="_blank" That’s it, it can be opened in a new window. However, since the current W3C prohibits the use of this attribute, an error will usually be reported when doing verification. This is something that must be noted
What I am going to talk about today. Few, mainly the links coming and going, and the jumps between pages also come from the use of links. Let everyone do it by themselves through the study of link tags
Then let’s do some exercises:
1. Your good friend in elementary school found you through the Internet and told you that he wanted to exchange homepage links with you. How do you add a link to his webpage www.cheapsuits.com/~billybob/?
This question Is it difficult? Not difficult! In fact, there are real examples above, so all you need to do is write the following line of code to settle everything:
http://www.cheapsuits.com/~billybob/">Friend's homepage
That's it.
2. When publishing a web page to the Internet, the home page will be placed at http://www.mysite.com/home.html. Write HTML code in this page so that when a visitor clicks All about me, the page http://www.mysite.com/mylife.html will be displayed.
This is also a question of a link:
http://www.mysite.com/mylift.html">All about me
At the same time, this All about me must be placed on the home page to ensure that after clicking, we will get the results we want. 3. How do you plan to publish a CD containing HTML? Create a link to the guidemainekatahdin.html page
This is a server problem, all we need to do is perform the process:
This example is not difficult, but it is still a link problem, because they are all under a large directory guide, so you only need to make a relative path. Now:
That’s it.

The above is the content of learning html step by step----Lesson 4, please check for more related content. Follow PHP Chinese website (m.sbmmt.com)


source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template