[first stage of front-end employment course] HTML5 zero foundation to actual combat hyperlink

Posted by brownka on Tue, 25 Jan 2022 07:44:53 +0100

In order not to affect reading, the directory is at the bottom

Note: when the mobile phone (APP) is turned on, the content will be displayed better, and you can only chat with bloggers who won't talk privately
If you want to get the code, just pull it to the bottom of the blog, and the directory is also at the bottom

1, External resource hyperlink

👸 Xiaoyuan: what shall we learn in this section?

🐶 1_bit: in this section, let's talk about hyperlinks. In the first section, we have some understanding of hyperlinks, which refer to the contents of the current area (space) or other areas (space). For example, let's make a hyperlink and click the link to jump to a page.

👸 Xiaoyuan: what should I do?

🐶 1_bit: at this time, we only need to use the corresponding tag. In HTML, different tags have different functions. Here we need to use hyperlink tags to link to a page. The tag of the hyperlink is a tag, writing < a > < / a >. Use examples are as follows.

👸 Xiaoyuan: is that all right?

🐶 1_bit: of course not. We also need to add a corresponding link to this a tag. The code is as follows.

👸 Xiaoyuan: I tried it, but I couldn't jump to Baidu's page.

🐶 1_bit: This is because we need to add an http: / /, and the complete code is as follows.

<a href="http://www.baidu. Com "> you can connect to Baidu here</a>


👸 Xiaoyuan: why do you do this?

🐶 1_bit: you can simply understand that adding http: / / means that what we link (point to) is a web page, because in a web page, what our hyperlink points to is not necessarily a "web address", but also a picture, a pdf file, a video, etc. For example, our 01 HTML (that is, the code file of last class) is also under the current folder G:/HTML actual combat class code /. We can accurately check 01 HTML file uses the file path to indicate the location of the file, that is G:/HTML actual combat class code / 01 HTML, because it is in the current directory, it can be directly represented by the file name. Now let's take this file as the point of hyperlink, such as the following code:

🐶 1_bit: save the file and refresh it at this time. Clicking this link will jump to 01 HTML in this web page.

2, Internal resource hyperlink

👸 Xiaoyuan: really, so pictures and videos are OK?

🐶 1_bit: right.

👸 Xiaoyuan: another question is how to express the path? What do you mean?

🐶 1_bit: the path indicates the location of a file on the computer disk. For example, when you open a folder, the upper part of the folder is the location of the file.

🐶 1_bit: we should note that if we need to represent a specific file, we need to add the file name and its suffix, such as G:/HTML actual combat class code / 01 html .

👸 Xiaoyuan: I see. You just said that under the same directory, you don't need a large string of points in front, just use the file name?

🐶 1_bit: Yes, but it should be noted that the suffix must be added, otherwise the resource will point to ambiguous.

👸 Xiaoyuan: how to point to the contents of the corresponding folder under the current directory?

🐶 1_bit: if you want to point to the pictures in the folder under the current directory, it is also very simple. For example, there is a file called img under the current folder.

🐶 1_bit: there is a png picture named 1 in img. We need to click a link in html to jump to the changed picture. At this time, we only need to change the resource address corresponding to the href attribute of a tag.

<a href="./img/1.png">Click to jump to the picture</a>


👸 Xiaoyuan: then why is the path here ". / img/1.png"?

🐶 1_bit: This is because of the decimal point "." It means the current path, ". /" means the current path, followed by img means the IMG folder under the current path, and "/" after img means 1.0 under the IMG folder under the current directory Png this picture. At this time, save the html code directly. Click the link to jump to the changed picture.

👸 Xiaoyuan: Wow, I succeeded.

3, Other properties of hyperlinks

🐶 1_bit: in the hyperlink tag, href is the attribute of a tag, and the attributes corresponding to a tag include name, title, target, etc; Where name means to name the link, title means to add a prompt text to the link, and target means to open the target window, such as the following code.

<a href="./img/1.png" title="Open picture" target="_blank">_blank Click to jump to the picture</a>
<a href="./img/1.png" title="Open picture" target="_self">_self Click to jump to the picture</a>

🐶 1_bit: when we move the mouse over, we will find that the link has a prompt.

🐶 1_bit: then we click the self mode to open the link, which will directly jump to the image resources on the current page, and click the blank mode to directly create a new page for jump.

👸 Xiaoyuan: so it is. I see.

🐶 1_bit: a hyperlink can also jump to a resource of the current page in a way called anchor.

👸 Xiaoyuan: what does this mean? Resources of the current page?

🐶 1_bit: just like a long article with different paragraphs or chapters displayed in the same web page, we can jump to different paragraphs as hyperlinks.

👸 Xiaoyuan: how to do that?

🐶 1_bit: This is very simple. First, look at the following code.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>a Connection anchor jump</title>
</head>
<body>
    <h1>Paragraph jump</h1>
    <a href="#A "> mountain Sutra · Nanshan Sutra</a>
    <a href="#B "> Shanjing · beishanjing</a>
    <a href="#C "> mountain Sutra · Zhongshan Sutra</a>
    <a href="#D "> Haijing · overseas west longitude</a>

    <h2 id="a">Mountain Sutra·Nanshan Sutra</h2>
    <p>
        The head of Nanshan Sutra is called Xi mountain. Its first name is the mountain of swagger, which is close to the West Sea. Many laurels, many gold and jade.
        There is grass. It looks like leek and blue and white. Its name is Zhu Yu. You can eat it without hunger.
        There is a wood Yan, its shape is like grain and black, and its flowers shine four times. Its name is Migu, which is not lost when worn.
        There are animals, which look like Yu and have white ears. People walk in ambush. Its name is Pang Pang, which is good at eating.
        The water of Li is flowing out of Yan, while the West flows into the sea. Among them, there are many fertile people, and there is no disease when wearing it.
        Three hundred miles to the East, it is called the mountain of Tangting. Many yen wood, many white apes, many water jade, many gold.
        Three hundred and eighty miles to the East, it is called the mountain of wings. There are many monsters and fish in the water. Many white jade, many Agkistrodon halys, many strange snakes and many strange trees. You can't go up.
        Three hundred and seventy miles to the East, it is called the mountain of Chiyang. Its Yang is mostly red gold. Its Yin is white gold. There is a beast like a horse with a white head, a tiger with a red tail, and a ballad like sound. It is named Lushu and is suitable for descendants. Strange water flows out of Yan, and flows eastward into the water of Xianyi. Among them, there are many black turtles. They look like turtles, and the bird's head and cobra's tail. They are called xuangui. Their sound is like judging wood. They are not deaf and can be the bottom.
        Another 300 Li Mountain in the East. More water, no vegetation. There is a fish that looks like an ox, has a mausoleum, has wings at the tail of a snake, has feathers under it, and has a sound like an ox. it is called an ox. it comes back from death in winter. Eat without swelling.
    </p>
    <h2 id="b">Mountain Sutra·Beishan Sutra</h2>
    <p>
        The head of Beishan Sutra is called the mountain of single fox. There are many machines and trees, and there are many Chinese grass on it.
        Every time the water flows out, it flows in the west, and there are many pyrene aragonites.
        Two hundred and fifty miles north, it is said that qiuru mountain is full of jade without vegetation.
        Water skiing goes out of Yan, while the West flows into the adjacent water. Most of them are slippery fish.
        Its shape is like a gall, its back is bare, its sound is like a Wu, and it has warts when eaten.
        Among them, there are many water horses, whose shape is like a horse, with literary arms and oxtail, and whose sound is like shouting.
        Three hundred miles north, it is called Dai mountain. There are many jade on it and green under it.
        There is a beast like a horse. It has a wrong corner. Its name is Guanshu, which can break out fire.
        There are birds, whose shape is like black. They are five picked and red. They are called Yuyu?
        It's a female and a peony. It doesn't go gangrene when it's eaten. Pengshui flows out of Yan, while the West flows into the water of pyrene lake. There are many fish in it. It looks like a chicken with red hair, three tails, six feet and four heads. Its sound is like a magpie. You can worry about eating it. Four hundred miles north, it is called Qiaoming mountain. Qiao water flows out of Yan and flows into the river in the West. Among them, there are many fish with one head and ten bodies. Their sound is like a barking dog. They have carbuncle when they eat. There is a beast like Yan. Its shape is like a dog, but its voice is like a Durian. It is called Meng Huai, which can resist evil. It's a mountain, no vegetation, mostly green and realgar. Three hundred and fifty miles north, it is called Zhuoguang mountain. The noisy water flows out of Yan, while the West flows into the river. Among them, the fish with many fishes are like magpies with ten wings. The scales are at the end of the feathers. Its sound is like magpies. It can resist fire and eat without galloping. There are many pines and cypresses on it, many palm trees under it, many animals, sheep and birds. Three hundred and eighty miles north, it is called Guo mountain. There are many lacquer on it and many tung trees under it. Its Yang is rich in jade and its Yin is rich in iron. Yi water flows out of Yan and flows into the river in the West. Its animals are mostly llamas, and its birds have many nests. They are like rats and bird wings, and their sound is like sheep. They can resist soldiers. Four hundred miles to the north, as for the tail of Guo mountain, there are many jades but no stones on it. Fish and water flow out of the river in the west, including many Wenbei. Two hundred miles to the north, it is called danxun mountain. There are many Ailanthus cypresses, leeks and Dankan. Smoke water out of Yan, while the West flows into Tangshui. There is an animal that looks like a rat, while the head of the dodder is like an elk, and its sound is like a dog. It flies with its tail. It is called ear rat, which can't eat?Picking can resist hundreds of poisons. Two hundred and eighty miles north, it is called the mountain of stone. There is no vegetation on it, and it is much jade. The water flows out of Yan and flows into the river in the West. There is a beast Yan, which looks like a leopard, and the article title is white body. It is called Meng Ji. It is good at subduing, and its sound calls itself. Another hundred and ten miles north, it is called the mountain of spring, with many onions, sunflowers, leeks, peaches and plums. The bar water flows out of Yan, while the West flows into Jianze. There is a beast Yan, whose shape is like Yu, and the tattoo is good at laughing. When you see people, you lie down. It is called Youyi, and its sound calls itself. Two hundred miles north, it is called Manlian mountain. There are no plants and animals on it. It looks like Yu, but there are hyenas, oxtail, wenarm and horseshoe. When you see people, you call it Zuzi, and its sound is self-evident. There are birds. They live in groups and fly with friends. Their hair is like a female pheasant. They are called,Its sound calls from itself, and its food is already windy. Eight hundred miles north, it is called Shan Zhang Zhi mountain. There is no vegetation on it. There is an animal Yan. It looks like a leopard with a long tail. A man's head is an ox's ear. One eye is named Zhuqian. He is good at Zha. When he does something, he holds his tail. There is a bird like a pheasant, and its head, white wings and yellow feet are called Baihu. It is painful to eat and can be eaten. Oak water flows out and flows in the bar water in the south. Three hundred and twenty miles north, it is called guanti mountain. There are many chuzhe on it and quicksand and grinding stones under it. There is a beast, which looks like an ox with a white tail and sounds like a dog. It is called the father. There are birds. They look like female pheasants, and people jump when they see people. They are called Jisi, and their singing is also self-evident. Craftsman Han's water flows out of Yan, while the West flows into Jianze, many of which are magnets. Two hundred miles north, it is called panhou mountain. There are many pines and cypresses on it, hazelnuts under it, jade in Yang and iron in Yin. There is an animal Yan, the base is like an ox, and the four sections have hair, or a ox. The edge water flows out, while the South flows into the oak. Two hundred and thirty miles north, it is called Xiaoxian mountain. There is no vegetation and snow in winter and summer. Two hundred and eighty miles north, it is called Daxian mountain. There are no plants and trees, and there are many jade under it. It's a mountain. It's all around. You can't go up. A snake is known as a long snake, whose hair is like * Hao, its voice is like a drum. Three hundred and twenty miles to the north, it is called dunhong mountain. There are many palm trees on it and grass under it. The water of dunhong flows out of Yan, while the West flows into Jianze. Out of the northeast corner of Kunlun, Shiwei Heyuan. There are many red salmon, many animals, many cattle, and many birds. Two hundred miles north, it is called the mountain of little salt. It has no vegetation and is green. There is a beast, which looks like an ox, and its naked body, human face and horse feet are called peeping Yu. Its sound is like a baby. It is cannibal. The water flows out of Yanmen in the East, and there are many fish in Yanmen. Food kills. Two hundred miles north, it is called the mountain of prison law. While the Northeast flows into Taize. Most of them are reeling fish. They look like carp and chicken feet. They have warts. There are animals. They look like dogs, but people face them. They are good at casting and laugh when they see people. They are famous for their mountains?,If it moves like the wind, it will be windy all over the world. Another two miles north, called the mountain of Beiyue, is full of briers and bristles. A beast * is like a cow, and its four horns, human ears, ears and ears are named after the bosom. The water in the bosom flows out of Yan, while the West flows into the noisy water. There are many fish in the water. The fish body is the head of the dog, and its sound is like a baby. It is crazy to eat. Another hundred and eighty miles north, it is called hunxi mountain. There are no plants and more copper and jade. The noisy water flows out of Yan, while the West flows into the sea. There is a snake with one head and two bodies, which is called Feiyi. When you see it, the country will suffer a severe drought. Fifty miles north, it is called Beidan mountain. There are no plants and more leeks. A hundred miles to the north, it is called the best mountain. There are many horses and no vegetation. Another hundred and eighty miles north, it is called the North fresh mountain. It is a multi horse. The fresh water flows out of Yan, and the northwest flows into Tu Wu's water. Another hundred and seventy miles north, called Dishan and DOMA. There is a beast, which looks like a leopard, and the first article is called Yu. The water flows out of the dike, and flows eastward into Taize, many of which are dragon turtles. At the head of the North Mountain Sutra, from the mountain of Shan Hu to the mountain of Di, where there are twenty-five mountains, five thousand four hundred and ninety miles, the gods are all human faces and snake bodies. In the ancestral hall, the feather is used by a cock, and the jade is used for a * *. People in the north of the mountain are all living things that can't eat fire.
        The first of the two northern meridians is in the east of the river. Its first pillow is Fen, which is called Guancen mountain.
        There is no wood but much grass on it, and there are many jade under it. Fen water flows out of Yan, while the West flows into the river.
    </p>
    <h2 id="c">Mountain Sutra·Zhongshan Sutra</h2>
    <p>
        Zhongshan is at the head of the thin mountain, which is called the mountain of sweet jujube. The water flows out of the mountain and flows into the river in the West.
        There are many special trees on it. There is grass under it, and the sunflower can have leaves.
        Yellow flowers and pods are solid. They are called sheaths. They can be confused.
        There is a beast, which looks like a rat, and the title of the article is called Kan. It has gall when it is eaten.
        Twenty miles to the East, it is called the mountain of Li'er. There are many trees on it. It is also a wood. It has square stems and leaves, and yellow flowers and hair. In fact, it is like picking and clothing.
        Fifteen miles east, it is called Quzhu mountain. There are many bamboos on it. The water of Quzhu flows out and flows into the river in the south.
        One of them is the multi ho fish, which looks like a tuna, with a red beak and tail and red feathers. It can have tinea alba.
        Thirty five miles to the East, it is called the Cong deaf mountain. There are many large valleys, many chalks, black, green and yellow chalks.
        Fifteen miles to the East, it is called Zhuoshan. There are many red copper on it and many iron in its shade.
        Seventy miles east, it is called Tuohu mountain. There is grass, which looks like sunflower leaves and red flowers. The pods are solid and solid like brown pods. It is called Zhichu. It can be eaten without narrowing.
        Twenty miles east, it is called the mountain of Venus. It is a multi-day baby. It looks like a keel and can be acne.
        Seventy miles east, it is called mount Taiwei.
        There is a valley, called owl Valley, which is full of iron.
        Fifteen miles to the East, it is called the mountain of the valley. Most of them are red copper.
        Another hundred and twenty miles east, it is called the mountain of Wu forest, in which there are many grass. Thirty miles north, it is called Niushou mountain. There is grass. It is called ghost grass. Its leaves are like sunflowers and red stems. It is as beautiful as grass. You don't worry about it.
        The water comes out of the water, and the West flows into the water. It is a lot of flying fish. It looks like a fish, and it has hemorrhoids.
        Forty miles north, it is called Huoshan, with many trees.
        There are animals, which look like beavers, while there are hyenas with white tails, which are called Kui Kui. You can worry about raising them.
        Fifty two miles north, it is called Hegu mountain, which is full of thorns. And thirty-five miles north, called Yinshan, there are many sharpened stones and aragonites.
        There is little water, and there are many carved tangs. Their leaves are as square as elm leaves. In fact, they are like red beans. They are deaf to eat. Four hundred miles to the northeast, it is called the mountain of drum stirrup, which is mostly red copper.
        There is grass, named rongcao. Its leaves are like willows, its origin is like chicken eggs, and the wind of Ranunculus is already blowing.
        The top of every thin mountain, the mountain of white sweet jujube, and the mountain of drum stirrup, every 15 mountains, 6670 miles. Calendar son, grave also, its ancestral ceremony: Mao, too prison, the county to Jiyu.
        For the remaining 13, the wool is used as a sheep, and the county baby is sealed with mulberry and buried instead of being buried. Mulberry seal, mulberry master also, square its bottom and sharp its top, and wear it in the middle to add gold.
        The second Sutra is the first of the mountains. It is called the mountains of the mountains. There are many thorns on it, many animals and elks, and many birds.
        Two hundred miles to the southwest, it is called the mountain of FA Shi. There are many gold and jade on it and many hones under it. That is, the water of fish flows out, while the West flows into Yishui.
        Three hundred miles to the west, it is called Haoshan, which is rich in gold and jade without vegetation.
        Three hundred miles to the west, it is called Xianshan. It is rich in gold and jade. There is no vegetation. The fresh water flows out, and flows to the north into Yishui. Among them, there are many singing snakes. They look like snakes and have four wings. Their sound is like chimes. When you see them, the city is in a drought.
        Three hundred miles west, it is called Yangshan, with many stones and no vegetation.
        Yang water flows out of Yan, while the North flows into Yi water.
        Among them, many snakes look like human faces and jackals, birds' wings and snakes, and their sound is like scolding, and they see the flood in their city.
        Two hundred miles to the west, it is called Kunwu mountain, on which there is more red copper. A beast has its own horn, and its horn is like a number. It is called "*", and it does not squint.
        Another hundred and twenty miles west, called Lishan. Li water flows out of Yan, while the North flows into Yishui. There are many gold jade on it and green realgar under it.
        There is a wood Yan. When it looks like a Tang and red, it is called awn grass, which can poison fish. One hundred and fifty miles west, it is called the mountain of manqu. There are many gold and jade on it and many bamboo arrows under it.
        Yi water flows out of Yan, while the East flows into Luo. There is a beast Yan. Its name is horse belly. It looks like a human face and a tiger body, and its sound is like a baby. It is cannibal. Where the head of the Jishan mountain is from the mountains of Yanzhu to the mountain of manqu, where the nine mountains are 1670 miles, the gods are human faces and bird bodies.
        The ancestral temple uses wool and a lucky jade. It is cast instead of a jade. The second third is the mountain of ao'an, which is at the head of the mountain. Its Yang is rich in jade and its Yin is rich in ochre and gold. God smoked the pond and lived there. It is often beautiful jade. Looking at the river forest in the north, it looks like Qian and Ju. There is a beast like a white deer with four horns. It is called Fu Zhu. When you see it, the city is flooded. Ten miles to the East, it is said that Qingyao mountain is actually the secret capital of the emperor. Looking north at the bend of the river, there are many birds driving. Looking at the Qianzhu in the south, it was transformed by Yu's father. Many servants are tired and Pulu. It's a monster and a warrior. It looks like a man with a leopard face, small and white teeth, and pierces his ears and mouth. Its sound is like that of jade. It's a mountain, suitable for women. The water flows out of the river, while the North flows into the river. Among them, there is a bird named Yi, which looks like a teal. It has a green body, red eyes and red tail. It is suitable for eating.?There is grass, whose shape is like a tree, and its square stem is yellow, red and solid. Its origin is like Gaomu. It is called Xun grass, which is beautiful. Ten miles to the East, it is called Xi mountain. There are beautiful dates on it and jade of Xi in its Yin. The water flowing back to the North flows into the river. Many of them are flying fish. They look like dolphins and are red. They are not afraid of thunder and can resist soldiers. Four or ten miles to the East, it is called Yisu mountain. There are many gold and jade on it, many trees and water under it, and many yellow shells flow into the river in the north. Together, it flows north into the river, many of which are cangyu. Auspicious deity, taifengsi, looks like a man and tiger's tail. It is good to live in the sun of the mountain and have light in and out. Tai Feng God moves heaven and earth. The head of every mountain is 440 miles from the mountain of ao'an to the mountain of he. Its ancestral temple: Taifeng, Xunchi and Wuluo all have a pair of sheep, and the baby uses auspicious jade. Second, God buried it with a cock.
        Use it. At the head of Lishan Mountain, the second four meridians are called deer hoof mountain. There are many jade on it and gold under it. Sweet water flows out of the water, but flows to Luo in the north, among which there are many Ling stones.
        Fifty miles west, it is called the mountain of supporting pigs. There are many stones on it. There are animals, which look like raccoons and human eyes. Its name is Xi. The Guo River flows out of Yan, and flows to Luo in the north, where there are many stones.
        One hundred and twenty miles west, it is called Lishan. Its Yang is more jade and its Yin is more search. A beast is like an ox. The Cang body, whose voice is like a baby, is cannibal, and its name is Xiqu.
        The water of the pond flows out 120 miles to the West. It is called Lishan Mountain. Its Yang is more jade and its Yin is more search.
        There is a beast like an ox. The Cang body, whose voice is like a baby, is cannibal, and its name is Xiqu.
        The water of the river flows out, and flows south into the water of Iraq. There are animals, and the name is "*", which is like a dog and has scales, and its hair is like a mane.
        Two hundred miles to the west, it is called the mountain of Jiwei. There are many Chu and coated stones, and there are many jade on it. Two hundred miles to the west, it is called Jiwei mountain. The base is more jade and there is more copper under it.
        The water of Tao carving flows out of Yan, while the North flows into Luo. Many of them are sheep.
        There is a wood Yan, whose shape is like a Ailanthus, whose leaves are like tung trees and whose pods are solid. Its name is longum, which can poison fish. Two hundred miles to the west, it is called the mountain of Baibian. There are many gold and jade on it and green realgar under it.
        Two hundred miles to the west, it is called the mountain of bear ears. It is painted on it and brown under it. The water of floating haos flows out of Yan, while the West flows into Luo. Among them, there are many Shuiyu and mermaid.
        There is grass. It looks like Su and Chihua. It is called Jingzhu. It can poison fish. Three hundred miles west, it is called Mu mountain. There are many aragonites on it, many bamboo arrows and Bamboos under it, many animals, cattle, sheep and birds.
        Three hundred and fifty miles west, it is called the mountain of chenju. Luo water flows out of Yan, while the Northeast flows in xuanhu water, many of which are intestinal things.
        These two mountains are also luojian. The head of every Li book is from the mountain of deer hoof to the mountain of xuanhu. Every nine mountains is 1600 miles and 70 miles.
        Its divine shape is human face and animal body. In the ancestral hall, the hair uses a white chicken to pray but not to gather clothes.
        The middle five meridians are called the mountain of the bed. There are no vegetation and many strange stones. Three hundred miles to the East, it is called Shoushan. Its Yin is full of grain tussah, its grass is full of genkwa, its Yang is full of jade, and its wood is full of locust.
        There is a valley in its shade, which is called Ji valley. There are many birds. Its shape is like a record, and its food has been padded.
    </p>
    <h2>Haijing·Overseas west longitude</h2>
    <p id="d">
        Overseas from southwest Zou to northwest Zou. Miemeng bird is in the north of Jiexiong country. It is a green bird with a red tail. Dayun mountain is three hundred feet high, in the north of miemeng bird.
        The wild land of great joy was opened here after the summer. In the nine dynasties, it took two dragons and covered three layers with clouds. The left hand holds the Yi, the right hand holds the ring, Pei Yuhuang. In the north of Dayun mountain.
        One is the field of great heritage. The three body Kingdom opened in the north after summer, one song and three bodies.
        One arm country is in its north, one arm, one eye and one nostril.
        There are yellow and careless words, one eye and one hand. The country of qihumerus is in its north.
        He has one arm and three eyes, yin and Yang, riding a horse.
        There are birds at both ends, red and yellow, beside them. Xingtian and the emperor fought for God here. The emperor broke his head and buried it in the mountain of Changyang.
        Nai takes the breast as the eye, the navel as the mouth, exercises dry Qi and dances.
        Female sacrifice and female Qi are in the north, living between the two waters. Qi manipulates fish and Zu.
        The color of the bird is green and yellow, and the country it passes through dies. In the north of the female sacrifice. Bird man face.
        Live on the mountain. One is the nest of Uygur birds, green birds and yellow birds.
        The husband's country is in the north of Weiniao. He is dressed with a sword.
        The body of a female clown was born and burned in ten days. North of my husband.
        Zhang his face with his right hand. In ten days, the clown lives in the mountain.
        The kingdom of Wuxian is in the north of the clown. The right hand holds the green snake and the left hand holds the red snake.
        In Dengbao mountain, a group of witches are from top to bottom.
        And sealed in Wu Xian Dong, its like a *, before and after all have the first, black.
    </p>
</body>
</html>

This code looks long, but its content is a huge amount of text. Basically, the key points are shown in the figure below.

🐶 1_bit: in the above code, we can see that in the href of a tag, we use a similar writing method such as href="#a", which is the writing method of anchor. Where href is the resource pointed to by the current link, then "#a" is the resource address, where # is the writing method of the anchor in the link, and a is the ID value of an element in the current page. We can see from the code that the content with ID a in the current page is < H2 id = "a" > Shanjing · Nanshan Jing < / H2 >, so when you click < a href="#a" > Shanjing · Nanshan Jing < / a >, you will directly jump to < H2 id = "a" > Shanjing · Nanshan Jing < / H2 >.

👸 Xiaoyuan: I see. It turns out that there is an id in html.

🐶 1_bit: Yes, we can give the tag an id, just like a name. Just remember not to duplicate the name, otherwise there will be unexpected problems.

👸 Xiaoyuan: I see.

catalogue

[first stage of front-end employment course] HTML5 zero foundation to actual combat (I) detailed explanation of basic code structure
[first stage of front-end employment course] HTML5 zero foundation to actual combat (I) detailed explanation of basic code structure

Topics: Front-end html5 html