Experience Exchange Between html links and text tags
Source: Internet
Author: User
The content of this lecture covers links, titles, inserts, deletes, up and down labels, split lines, line breaks, and other labels. We all know that the biggest feature of a Web page is "Link". Yes, what we seem to have become accustomed to now has dramatically changed our lives, it is this small tag that makes countless Internet talents in the world. Let's take a look at the true face of this label:
Region
This simple tag is actually used by everyone. using Dreamweaver, you can easily add links. However, we still need to know the attributes of A so that we can make better use of it. A is an inline label, that is, it does not generate A branch. It is plain in text. We all know that inline elements cannot contain block elements. That is to say, A cannot contain sections, DIV, and other block-level elements. Is there such a situation in your work? Are there countless block-level labels added to? From now on, let's get rid of this bad habit. This will not only avoid unnecessary bugs, but also give GOOGLE and other search engines a good impression. In addition, we recommend that you add the titile attribute to. Example:
Region
Why is this done? I have an article here, "when the title cannot be fully displayed". You can check it. This is just a small use of the title attribute, however, this function is very effective.
The URL href = "URL" in the link tag is very powerful. Of course, this is not the content of our column. However, it is highly recommended that readers read the relevant knowledge carefully. I have found related documents from Baidu encyclopedia. Please click to read them. For the moment, I will only talk about this many links. If you have any questions, please contact me through the post-Article contact information or leave a message online.
Titles are almost all elements of all articles, and are also an important element for us to recognize and index articles. We perceive the core of the article through the title. So you know? Reasonable use of the title tag will make your article more interesting. We all know that XHTML provides h1 ~ H6 and six title tags. How do we allocate these six title tags? The following are some suggestions: h1, the largest title displayed in the browser, is naturally used to indicate the largest title. which title is the largest for a website? It is a LOGO. We usually mark the name of the website at the beginning of the website. So h1 is used to put the LOGO. Of course, if your website does not have a LOGO and there is only one website name, you can also. Of course, it is not recommended that you put an image in h1. We can use CSS to change the image. In addition, it is recommended that h1 appear only once on the webpage.
When h1 finds a specific function, the burden of serving as the content mark or based on its title will be placed on several other title labels. In the remaining titles, h5 and h6 are displayed in a browser with a font smaller than the normal text font by default. We recommend that h5 and h6 be used only as disclaimer or copyright notice. This indicates the importance and does not significantly affect reading. Pay attention to the hierarchical relationship between titles and tags as much as possible. Of course, the title should be determined based on actual use. Here is just a suggestion. A title label is a block line element, but it cannot contain block-level elements. It can only contain inline elements, such as links, images, and line breaks. I remember a friend mentioned the title content in the article two days ago, but there was something wrong with the writing method. He wrote the link outside the H1 tag and wrapped the H1, this method is not recommended. It is not in line with the standard thinking that will easily lead to poor guidance for future learning.
There will inevitably be errors in our articles, so we need to modify them if there are any mistakes, but sometimes we need to tell the readers that this section is deleted but can be seen by the readers. Then the function of deleting a tag is generated. We used Or
To get a strikethrough effect. However, this table only has a strikethrough effect, and the semantics is not more explicit than DEL. So here I want to tell you to abandon the previous method and use This label. It can also express what we need and make the meaning clearer. In addition to deletion, we also need to add and modify the deletion part. Then this tag is very useful, that is, inserting tags. . I believe you don't need to say that you know how to use these two tags, but do not forget to add two important attributes to these two tags: cite and datetime. Explanation and time. Needless to say, you only need to use text to indicate why to delete or why to insert. However, you need to specify the format at this time. The strict format is YYYY-MM-DDThh: mm: ssTZD. It is similar to what we usually use but different. T represents the necessary characters starting from the time period, TZD represents the time zone, and Z represents the Greenwich Mean Time. Yixiu is written as follows: 2008-03-25T14: 26: 22Z
There are two style labels in all labels, but they are not disabled, because the two labels express a very special content, such as up and down, superscript, and subscript.
These two labels have a relatively low probability of use, but they should still be frequently used for superlabeling, such as small circles on the degree Celsius in the temperature. Of course, there are professional characters corresponding to "℃ ", also, we often see [1] On the footer in the book.
Hr: Split the separator line. You only need to pay attention to the label Writing Method for this label and line feed label.
Here are some labels about the text. Of course there may be many labels, but some are not recommended and are not commonly used, so we will not recommend them here, if you are interested, search for the relevant inner space and read it. The next article will introduce CSS to beautify our documents a little bit.
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.