Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Friends who play XHTML have a good command of the label elements such as Div,span,ul,li, but sometimes a page needs some special text to do some special rendering, our common practice may be to define a class selector in CSS, define some special rendering effects, and then use <span class= "class name" >XXX</span> such a method to achieve results, of course, but the wit here to introduce another way, that is, using some of our not commonly used tags to achieve results.
In fact, there are many tags in xhtml that we don't use very often, and it's not the same label that the consortium recommends giving up, and it's very short and we can make good use of it.
For example, q tags, em tags, and so on, Q tags are used to separate quotations, and the EM tag is originally meant to emphasize the text. For example:
<p> I said:<q> "Good!" "</q></p>
<p> We are <em> excellent programmers </em></p>
But we actually use, almost no one in this way, such a good short label wasted a lot of pity, hehe. Let's take advantage of it. For example, we change this Q label to bold font, change the EM tags to bold red font, and these two labels will be used as the emphasis on our page to attract the attention of users. How to do it? I believe we all think of, directly in the CSS definition of two tag Selector. Yes, that's right. As follows:
q {Font-weight:bold}
em {Color:red;font-style:normal;font-weight:bold}
Someone will ask why the EM tag adds a font-style:normal. This is because the default em tag font is italic, so we change it to a standard font.
Later we apply this:
<p> wit likes to play <q>xhtml</q>, and to the website <em> foreground development </ Em> quite interested, welcome everyone to visit <em><a href= "http://www.54caizi.org" title= "Wit Xiao wo" > Wit xiao wo </a></em></ P
as a result, our code is more concise and the code is shorter. XHTML also has many of these types of tags, mainly some text tags, are not commonly used, the wit here also recommended a few:
DFN label, used to indicate the definition of a term, such as: <dfn>html represents a Hypertext markup language. </dfn>
Cite tags, originally used to mark the introduction, such as: <cite title= "http://www.54caizi.org" > Wit small Nest </cite>
var tags, which are used to define programming variables, such as: variable <var>i</var> representative cycle times
KBD label, originally used to indicate the user input text, such as: Please enter <KBD title= "Please enter QUIT exit" >QUIT</kbd> exit.
The SAMP tag, originally used to specify code examples, such as: The output of the program is <samp>x+y</samp>.
Acronym label, originally used for abbreviations of words, such as: <acronym title= "cascading Style Sheets" >CSS</acronym>
Abbr label, originally is the introduction label of the word abbreviation, but IE6 not support, faint. such as: <abbr title= "2¥q" >Ltd.</abbr>
Of course there are some, here not one by one, these tags in addition to abbr label IE6 not supported, other tags in any mainstream browser all effective, we can be used to do some special effect rendering, as to what to do, it depends on your imagination, hey.
Libertine works, reprint please keep the original address link, thank you for your cooperation! Wit Small Nest: http://www.54caizi.org