Author: Acha 2004-6-25 10:13:01
#bgone {border: 1px dotted # 666; padding: 30px; Background: URL (images / bg_border.jpg) #fff repeat left top;}
#bgtwo {border: 0; Padding: 20px; Background: URL (images / bg_poem.jpg) #fff repeat left top; color: # 00a651}
UL {List-style-type: none;}
#ptitle {font-size: 18px; color: # c00; font-weight: bold; text-align: center;
#pauthor {text-align: center;
#poem {font-size: 14px; font-family: 'black body', 'Song body', 'new Song body'; font-weight: bold; margin: 10px 100px 10px 200px;}
.jtitle {font-size: 14px; color: # c00; font-weight: bold;}
.note {color: # c61c18;
For beginners, we often see one of the benefits of the Web standard is "Can perform performance and structural phase separation", what does this mean? I will explain the detailed example in an actual example. First we must first understand some basic concepts: content, structure, performance and behavior.
Content
The content is true information to be communicated by the page, including data, documentation, or pictures. Note that "true" this is emphasized, refers to pure data information itself. For example, an information that does not include auxiliary, such as navigation menu, decorative pictures, etc. For example, there is a piece of text below is the information we want to behave.
Recall the Jiangnan (1) Tang. Bai Juyi Jiangnan is good, the scenery is old. (2) Sunrise Jianghua Hongsheng fire, spring is green, green, (3) can not remember Jiangnan. Author's introduction 772-846, word music day, Taiyuan (now Shanxi) people. Tang Dezong, Jinshi, Yuanhe three years (808), worship, after the resection History of Shaanxi Province. Late home Luoyang, self-drunk, Mr. Xiangshan. Its poetry is very political, heavy, and is easy to stay in Zhongtang. It is also a leader in the early words, and it has great influence in the future. Note (1) According to "Yuefu Miscellaneous", this term is also known as "Xie Qiu Niang", Tang Li Deyu is the Qi Jie Qi Niang. Also known as "Wang Jiangnan", "Dream Jiangnan" and so on. Divided, double-tone. Toned twenty-seven words, double witty five4 words, all are rhyme. (2) Many (sound security): Familiar. (3) Blue: Blue grass, whose leaves can be blue and green dyes. This word is written in Jiangnan, the first sentence "Jiangnan is good", with a "good" word that is both shallow and round live, takes the best in Jiangnan spring, and the author's praise and yearning among them. At the same time, the only thing that is "good" has been "good", "complies" does not end, so this sentence has been secretly "can not remember Jiangnan" and related to it. The second sentence "The Landscape of the Lands", click "Good" in the Jiangnan scenery, not to rumize, but the author's personal experience and personal experience. This is implemented in the "good" word, and the word "recall" is not lost to a wonderful pen ink. Third, four two sentences to the "good" of Jiangnan, highlight the bright color of the river and river red and green, giving people a strong impression of glory. Among them, there are both mutual rejection of the same color, and the transcitrite of the transformation, which fully shows the author's tips for coloring. At the end of the article, the author of "Can not remember Jiangnan", the author of the born in Luoyang's infinite praise and nostalgia of Jiangnan spring, causing a long and deep charm, bringing readers into the rest of the ripple Among the realm. 2. Structure (Structure)
It can be seen that the above text information itself is complete. But there is a chaos, it is difficult to read and understand, we must format it. Divide it into title, authors, chapters, knots, paragraphs and lists.
title
Recalling Jiangnan (1) Author Tang. Bai Juyi's body Jiangnan is good, the scenery is old. (2) Sunrise Jianghua Hongsheng fire, spring is green, green, (3) can not remember Jiangnan. 1 author introduces 772-846, the word music day, Taiyuan (now Shanxi) people. Tang Dezong, Jinshi, Yuanhe three years (808), worship, after the resection History of Shaanxi Province. Late home Luoyang, self-drunk, Mr. Xiangshan. Its poetry is very political, heavy, and is easy to stay in Zhongtang. It is also a leader in the early words, and it has great influence in the future. 2 Notes List (1) According to "Yuefu Miscellaneous", this term is also known as "Xie Qiu Niang", Tang Li Deyu is the Qi Jie Qi Niang. Also known as "Wang Jiangnan", "Dream Jiangnan" and so on. Divided, double-tone. Toned twenty-seven words, double witty five4 words, all are rhyme. (2) Many (sound security): Familiar. (3) Blue: Blue grass, whose leaves can be blue and green dyes. Section 3 Products Words Wen Jiangnan Spring Color, the first sentence "Jiangnan Good", with a "good" word that is both shallow and round live, takes the best in Jiangnan spring, and the author's praise is also Embossing. At the same time, the only thing that is "good" has been "good", "complies" does not end, so this sentence has been secretly "can not remember Jiangnan" and related to it. The second sentence "The Landscape of the Lands", click "Good" in the Jiangnan scenery, not to rumize, but the author's personal experience and personal experience. This is implemented in the "good" word, and the word "recall" is not lost to a wonderful pen ink. Third, four two sentences to the "good" of Jiangnan, highlight the bright color of the river and river red and green, giving people a strong impression of glory. Among them, there are both mutual rejection of the same color, and the transcitrite of the transformation, which fully shows the author's tips for coloring. At the end of the article, the author of "Can not remember Jiangnan", the author of the born in Luoyang's infinite praise and nostalgia of Jiangnan spring, causing a long and deep charm, bringing readers into the rest of the ripple Among the realm. Similar to the above title, author, chapters, sections, paragraphs and lists, we call it structure. The structure makes the content more logical, easy to use.
2. Performance
Although the structure is defined, the content is still not changed, for example, the title font is not large, the color of the body has not changed, no background, no modification. All of these things used to change the appearance of the content, we call "performance". Below is the effect of the above text with performance processing:
Recall the Jiangnan (1)
Tang. Bai Juyi
Washed from Jiangnan, the scenery is old. (2)
Sunrise river flowers, red, spring, river, green, green, (3)
Can not remember Jiangnan.
about the author
772-846, Character, Taiyuan (now Shanxi) people. Tang Dezong, Jinshi, Yuanhe three years (808), worship, after the resection History of Shaanxi Province. Late home Luoyang, self-drunk, Mr. Xiangshan. Its poetry is very political, heavy, and is easy to stay in Zhongtang. It is also a leader in the early words, and it has great influence in the future.
Comment
(1) According to "Yuefu Miscellaneous", this term is also known as "Xie Qiu Niang", Tang Li Deyu is the Qi Jie Qi Niang. Also known as "Wang Jiangnan", "Dream Jiangnan" and so on. Divided, double-tone. Toned twenty-seven words, double witty five4 words, all are rhyme. (2) Many (sound security): Familiar. (3) Blue: Blue grass, whose leaves can be blue and green dyes.
Column
This word writes Jiangnan Spring, the first sentence "Jiangnan is good", with a "good" word that is both shallow and round and live, takes the various benefits of Jiangnan Spring, and the author's praise is also in the same way. . At the same time, the only thing that is "good" has been "good", "complies" does not end, so this sentence has been secretly "can not remember Jiangnan" and related to it. The second sentence "The Landscape of the Lands", click "Good" in the Jiangnan scenery, not to rumize, but the author's personal experience and personal experience. This is implemented in the "good" word, and the word "recall" is not lost to a wonderful pen ink. Third, four two sentences to the "good" of Jiangnan, highlight the bright color of the river and river red and green, giving people a strong impression of glory. Among them, there are both mutual rejection of the same color, and the transcitrite of the transformation, which fully shows the author's tips for coloring. At the end of the article, the author of "Can not remember Jiangnan", the author of the born in Luoyang's infinite praise and nostalgia of Jiangnan spring, causing a long and deep charm, bringing readers into the rest of the ripple Among the realm. Oh, it is obvious that we add 2 contexts, turn the title font and bold the small title and become red, and so on. All of this is "performance" role. It makes your content look beautiful, more and more! The metaphor of the image: the content is the model, the structure indicates the head and the limbs, and the performance is the clothing, and the model is dressed up to drift. (Please forgive me for using the model, many times the model is more attractive than the Web standard.)
So what is behavior?
3. Behavior
The behavior is the interaction and operation of the content. For example, we are most familiar with JavaScript. Using JavaScript We can make the content, you can judge some form commit, you can do some of you. I will no longer have an example.
All HTML and XHTML pages are consisting of "structure, performance, and behavior". Abstract, the content is the base layer, then it is attached to the structural layer and the performance layer. After making some "behavior", it is shown that the sketch is as follows:
4. Traditional HTML method
Traditional HTML3.2 / 4.0 labels have both controlled structural labels, such as
, and controlled labels, such as , , and it is also used for the structure to be abused. Labels, such as ,