Today, I want to learn the basics, I looked at HTML (4.0), and found that I have too little control over HTML. A lot of code is unfamiliar, never seen, let alone used.
Take the <a></a> element to give an example. Its properties are as follows:
Name,href,target,title (This is our common, we don't have to say more)
Rel,rev,charset,hreflang,tabindex,accesskey,shape (Default|rect|circle|poly), coords (Length-list), which were rarely seen before, Here is the introduction.
Rel=cdate
This property indicates the relationship from the current position to the link location. For example, rel= "Next" href= "a" indicates that the link is next.
Rev=cdate
This property is just the opposite of rel, no more.
Charset=cdate
This property specifies how the link is encoded, and the property value must be the name specified in [rfc2o45] as "charset": for example: "EUC-JP". The default value for this property is "Iso-8859-1".
Hreflang=languagecode
This property is used to specify the language in which the link is used. For example: "En" refers to English, "cn" refers to Chinese.
Tabindex=number
This property is used to specify the order in which the element gets focus. Its value can be from any one of the 0~32767.
In the element of the TabIndex attribute, the focus is first obtained with a smaller number, and the element that is first displayed in the HTML document is processed first in the case of equal worth. A "tabindex=0" or an element with no TabIndex attribute will be accessed at the end. (Looking at this I suddenly think of the ability to have this value to control the download element of the page, but do not know whether the idea is correct, as if other do not support this attribute).
Accesskey=character
This property assigns a hotkey to a element. A hotkey is a single character from the current character set of the client browser. The client browser should treat this property as case-insensitive.
Shape=default|rect|cirle|poly
This property is used to create a client image image that specifies the shape of the region, and the possible values are:
Default: Define this area
Rect: Define a rectangular area
Circle: Define a circular area
Poly: Define an elliptical region
The default shape value is rect
Coords=length-list
This property is used to create a client image image that specifies the position of a shape on the screen, and the number and value of the value depend on the shape being defined. The possible combinations are:
Coordinates to the upper-left corner of the special, all values are length (can be pixels or percentages)
The above written, all for my reference to book collation, does not represent my personal level, because this I basically also did not use, also is not very understanding, posted out the meaning is wants those who do not know to be able to acquaint with, and to this very understanding friend can give the explanation according to these, the actual point out these code's function, So that everyone can deepen the understanding of HTML. Although the current software can basically meet the requirements of everyone, but after all, the Web page finally has code to achieve, so I would like to master more, more understanding and know some will be more helpful to themselves, only the benefits, no harm, in fact, in the HTML there are many such code, above is just an example, I hope we can communicate a lot and make progress together.
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