MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

How to create images and links?

Source: Shangpin China | Type: website encyclopedia | Time: December 11, 2015

In the previous section, three villagers arranged their own products. This time, the first villager added pictures to the products in order to compete with other villagers. The graphical web page list is shown in code 1-3.

 Graphical Web Page List


Open Notepad, enter the above code, save the file named "img. htm" to the desktop, double-click the "img. htm" file, and the display result is as shown in Figure 1.5.

 Create Image


Tip: You can't see any pictures at this time. Go online to find some pictures of winter melon, watermelon and pumpkin, then create a new folder "images" on the desktop, put the pictures you find in the folder "images", and re open img.htm to see them.

Website construction Code analysis: add the<img>tag to the page. In this example, the<img>tag has three attributes separated by spaces. The "src" attribute specifies the path of the image, the "width" attribute specifies the width of the image, and the "height" attribute specifies the height of the image.

Since the first villager added pictures to winter melons, watermelons and pumpkins, other villagers followed suit. Later, when everyone's products became more and more, one page could not hold all the pictures. At this time, the Lan villager studied hard for a few days and decided to revise it. The original picture was separated from the list page. The list was only used to display the name and description of the product. A link was added to the name. Click the name to see the picture.

The third villager has 4 pages of source code. Open Notepad, enter codes 1-4, and save the file named "links. htm" to the desktop.

 Web pages with links links.htm


Open Notepad, enter the following code, and save the file named "donggua. htm" to the desktop.

 Donggua.htm code


Open Notepad, enter the following code, and save the file named "nangua.htm" to the desktop.

 Nangua.htm Code


After saving everything, return to the desktop, double-click the "links. htm" file, and the browser displays the results as shown in Figure 1.6.

The winter melon, watermelon and pumpkin on the page have colors and underline, which means that there is a link for them, and they will jump to another place after clicking. Click any link, such as winter melon, and the browser will jump to "donggua. htm". After reaching "donggua. htm", you can also click the "Back to List" link to return to "links. htm", as shown in Figure 11.7.

 Link Page

Marketing website construction Code analysis: To jump from one page to another, you can use the link tag<a>. In this example, the<a>tag has an attribute "href" to specify the page to be reached. With a link, you don't need to enter an address in the browser address bar every time. You can click the link directly to get to the place you want to go. Just like the Internet that people use now, one website links to another website, and another website links to other websites, finally forming an unknown network.
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]