At the beginning of the article, I first issued a statement, due to poor language, so the name of the article has become one of my most painful things, so in order to facilitate, I will not change the name, although, this article is called HTML, you forget it? More appropriate.
In the above, I wrote some of the use of Non-mainstream tags, this article, let us take non-mainstream to the end, look at those non-mainstream users.
In this article, I refer to the Non-mainstream user not to say that those who wear heavy makeup, the strange expression of the network non-mainstream mm, and specifically to some we do not notice the user. For example, use non-PC-side Internet users, such as visually impaired users.
OK, let's move on to today's topic.
1.,<link> introduce CSS from scratch.
Let's take a look at the common code first:
<link rel="stylesheet" href="../hr.css" type="text/css">
<link> tags I believe most people are not unfamiliar, when we need to be in an HTML page to reference another external file, such as CSS, then we need to use the link tag to introduce it. So what's wrong with this code?
Let's see what I can do to translate this code into his equivalent line:
<link rel="stylesheet" href="../hr.css" type="text/css" media="all">
The gap between the two is media properties. Let's take a look at media properties, media properties specify some terminal devices, and then allow browsers to download different external files based on different terminal devices. If the above code, how should the standard write it?
<link rel="stylesheet" href="../hr.css" type="text/css" media="all">
<link rel="stylesheet" href="../hrhandheld.css" type="text/css" media="handheld">
<link rel="stylesheet" href="../hrprint.css" type="text/css" media="print">
<link rel="stylesheet" href="../hrtv.css" type="text/css" media="tv">
Do you know what I mean? I mean, we should consider different terminals and then refer to different CSS styles for different terminals.
This, do not know, have you ever noticed it? Have you ever thought about specifying some style files for those non-mainstream terminal devices?
2. alt attribute
This attribute I believe no one will not know this attribute. The most common use:
Alt for us may not be common, we have eyes, will go according to their own vision to judge the role and content of the picture. But don't forget that those who forbid image for the sake of saving network traffic, also don't forget those who have visual problems, use the screen reader, if we ignore this attribute, then it is a very painful thing for them.
Look at a page like this: