You can define link styles in different pieces of content through different rules. Like this: #nav a:link or #main a:link or #footer a:link. You can also define styles for the same elements in different content blocks. For example, the styles of #main p and #sider p are defined by #main p and #sider p respectively. Structurally, your page is made up of pictures, links, lists, paragraphs, and so on, and these elements don't have any effect on what network devices (PDAs or mobile phones or network TVs) are displayed, and they can be defined as any appearance of appearances.
A carefully structured HTML page is very simple, and each element is used for structural purposes. When you want to indent a paragraph, you don't need to use the blockquote tag, just use the P tag, and add a CSS text-indent rule to p to achieve indentation. P is a structured label, Text-indent is the performance attribute, the former belongs to HTML, the latter belongs to CSS. (This is the legendary separation of structure and performance)
Well structured HTML pages have almost no label for performance attributes. The code is very clean and concise. For example, the original code <table width= "778" cellpadding= "3" border= "0" align= "center", which can now be written only in HTML <table id= "Mrjin"; Everything that controls performance is written into CSS, and in structured HTML the table is a table, not something else (not to be used for layout and positioning).
Of course, CSS selectors are not just that simple, except for the ID and class as well as the descendant selector, the attribute selector, and so on.
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.