1.2 HTML documents are encoded in UTF-8 What are the advantages of the set
● utf-8: uses 3 bytes to represent a symbol, which can basically cover all languages in the world
● Compared with traditional gb2312, gbk Than, there are more recognized character sets, and it is also recommended by the industry
1.3 What are the four most commonly used attributes in tags
● id, class, title, style
● These four attributes are present in almost every html tag. You need to pay special attention to
1.4 What is the difference between the title and alt attributes in the tag
● title: It is the description of the label. When the mouse is moved in, this description information will appear in a moment.
● alt: Used on replaceable elements. When external resources cannot be loaded correctly, this information will appear. It will be displayed on the placeholder
1.5 What is the difference between the href and src attributes in the tag
● Both are references to external resources
● href: used for hypertext or style, used on and tags
● src: used on external resource placeholder tags, such as ,