Common HTML tags for beginners (3) List tags: html list tags for beginners

Source: Internet
Author: User

Common HTML tags for beginners (3) List tags: html list tags for beginners

In the third blog, we are talking about inserting link tags. We usually see blue link tags, images, and emails on webpages, these are the functions of inserting the tags of The Link class.

<A> </a> link tag

<A> a link tag can be used as a hyperlink. It is everywhere in a webpage. As long as there is a link, it will have this tag. Its syntax is different from other tags, for beginners, after all, they do not add attributes to tags at the beginning, <a> the syntax is <a href = "target URL" title = "move the mouse over the displayed text" target = "_ blank"> text displayed on the Link </a>. the title attribute is displayed when the mouse slides over the text of the link. It has a great practical effect and makes it easier for the search engine to understand the content of the link address. The professional point is that the semantics is more friendly, this is required in actual development. the default style will be blue. Similarly, you can modify it after learning css. the "_ blank" attribute of target is opened in a new window, that is, a new one is displayed, so that the user experience in use is quite good.

Mailto is also a feature of the <a> label. You can send emails to a specified account and add specific CC subject content and other information, however, I personally feel that it is not very useful in actual development. so I will not discuss it much. If you are interested, you can use Baidu.

Image Tag

labels are essential in the production of web pages. To ensure the diversity and diversity of web pages, inserting images is essential. At this time, you can insert an Image Tag. the syntax of image insertion is similar to that of link: , the title is not explained above. alt refers to the descriptive file of the image, that is, when the image fails to be loaded, you can see the text set for this attribute. images can be in GIF, PNG, JPEG, and other formats.

These are simple layout labels and the most basic labels. They will be more complicated to write in the future. They will also be used for future review. I wish you a happy New Year, everything goes well.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.