A basic tutorial on learning how CSS should be noticed

Source: Internet
Author: User
Learning anything is the same, from primary school, secondary school, university, in addition to learning knowledge is to learn methods!

To master the CSS, first of all to learn HTML, I was just beginning to learn from scratch, spent one months to learn HTML, no teacher, the book is my only teacher, there is no internet conditions! One months later, I began to learn CSS, just started to read the first CSS book is "CSS Web page style design" to see a few days after the discovery can not understand! , after a copy of the "HTML Reference", this book is a web-maker's desk standing book! Change this book to learn CSS, because there is a part of the CSS, it became my CSS Enlightenment book. After looking at a few paragraphs, I feel that the foreign-written tutorial is very organized, easy-to-go, step by step to guide you forward, let you understand what they are saying, rather than the depth of the book in the domestic, lack of order, as if afraid you do not know he is very knowledgeable! As I said before the book "CSS Web page style design" at that time, for beginners of CSS, I really do not know what it is saying!

To talk about the details of the learning process, because a style it is not possible to break away from the HTML page, HTML is not combined with the style, CSS lost its existence meaning. So the general book will give an example, and then let you on the machine test effect, this is the author wants to let you have a style sheet CSS has a preliminary impression, tell you what CSS can do. A little example: "Small, perfectly formed," you may not understand the true meaning of each statement. But you can remember the example of the pattern, in the practice of continuous use, and constantly use the process is to keep in mind the process, so can not restore the heart, can not always think of their memory is not good, but whether you ride the cow or the maxima, as long as there is perseverance, will reach the end.

Read a book, in general, the first time to read through the whole book, do not understand also to look down, in the process of looking down you may find the answer to that question. After reading you have a general impression, but there must be a lot of things do not understand, it doesn't matter, continue to look down.

The second time you want to watch while doing study notes, you think is the focus of the part of writing, and you feel that the part of the question to be noted, with doubts to see, if there is no answer, you can go to BBS on a post, good people or a lot of, hint: "must learn how to ask questions!" "I won't say it here." You have to go on the machine to practice the example of the book, the most confusing to you: "One is not remember, the second is the understanding of the concept of the wrong (this one may be a bad book translation, the other is your understanding of the wrong)", for the first you have to build confidence, adhere to continue. When you get to the finish line, you find that everything is a logical thing. Because you work hard, the effort will have the return, has the result.

There are a lot of people have seen, but there is no progress, I analyze the main reasons for the following:

Reason one: Pressure is not enough, because there are a lot of people such as the art of CSS, because it is to see others learn, so learn, do not learn there is no advantage! This kind of pressure is very small, the school is not good and the art of this bowl of rice.

Reason two: Only the amateur study, this kind of study still just play a play, because you do not have to take this technology to eat.

Reason three: The method is wrong, some people just look at the tutorial, but he does not do, I used to see too much, do too little, so have the practice you can put the theory of things in.

Mastering the Four learning stages of CSS

Once I asked a netizen, is it difficult to learn CSS? She said: "Not hard" how long have you been studying? She said, "just learn." Actually, she was right! If someone asked me to learn CSS difficult? I will say: "Hard!" "Why would I say it hard?"
Learning CSS can be divided into the following stages:

Phase one: You can make the page without thinking about the compatibility of the browser, but the page is filled with the table's pattern div.

Phase two: Think of compatibility issues, but can not be prevented in advance, will only fix the problem, a lot of use of hack technology (I just know about hack technology, but with very little)

Stage Three: The bug can be prevented in advance, but the style sheet is heavily applied id,class,css is overlapping style sheet, such as "DIV P SPAN". This code is the child element span of P in the div child element, so that you can define the style of the span without adding class to the span. This is the advantage of CSS, why not make good use of and must define a class it!

Stage four: This phase is the most difficult, good HTML semantic structure, reasonable CSS, reusable style. Good semantics have this aspect of the article, the reasonable CSS, these two aspects will certainly write the topic to study.
  • Related Article

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.