How to Learn CSS

Source: Internet
Author: User

Learning everything is the same. From elementary school, middle school, or university, apart from learning knowledge, you can also learn the methods!

To master CSS, I must first learn HTML. I first learned HTML from scratch and spent a month learning HTML. Without a teacher, books are my only teacher, no Internet access conditions! A month later, I began to learn CSS. The first CSS book I first read was CSS webpage style design. After reading it for a few days, I found that I could not understand it !, Then I changed my book "HTML reference book". This book is a constant book for website producers! The reason why I changed this book to learn CSS is that part of it is CSS, which becomes my CSS book. After reading a few paragraphs, I think that the tutorials written by foreigners are very well organized, from simple to deep, and lead you forward step by step, so that you can understand what they are talking about, rather than the different depths of Chinese books, lack of organization, as if you do not know that he is very knowledgeable! As I read the previous book CSS webpage style design, I really don't know what it is talking about for beginners of CSS!

Let's talk about the details in the learning process, because a style cannot be separated from an HTML page. If HTML is not combined with a style, CSS will lose its meaning. So in general, I will give you an example in the book, and then let you test the effect on the computer. This is what I want you to have a preliminary impression on the style sheet CSS and tell you what CSS can do. For example, you may not understand the true meaning of each statement. However, you can remember the example mode, which will be used continuously in the future. The process of continuous use is a process of constant recording. Therefore, you cannot regard your memory as bad, but no matter whether you ride a cow or a horse, as long as you have perseverance, you will surely reach the end.

To read a book, you should read the entire book for the first time. If you do not understand it, you must read it again. You may find the answer to the question during the reading process. After reading it, you may have a rough impression, but there must be a lot of things you don't understand. It doesn't matter. Continue to look down.

The second time, you will read and take study notes, write down what you think is the key part, and write down what you think is in doubt. Take a look at it with questions, if there is no answer, you can post a post on BBS. There are still a lot of good people, prompting: "You must learn how to ask questions!" I won't talk about it here. You have to go to the exercise book on the computer, and you are most confused: "One cannot remember, the other is wrong understanding of the concept (this may be a poor translation of the book, in addition, your understanding is not correct. "For the first article, you must establish confidence and stick to it. When you reach the end, you will find that everything is a logical task. If you work hard, there will be rewards and results.

A lot of people have read it, but there is no progress. My analysis mainly involves the following reasons:

Cause 1: The pressure is not enough, because many people, such as the US-work-style CSS, are learning from others, so they have no advantage if they do not learn it! The pressure is very small, and there is still a bowl of rice for the artist.

Cause 2: I am only studying in my spare time. This is just a bit of fun, because you don't have to eat with this technology.

Cause 3: The method is incorrect. Some people are only reading the tutorial, but they are not doing it. I used to read too much and do too little, so with practice, you can rub the theoretical content into it.

Four learning phases of CSS

Once I asked a netizen, is it difficult to learn CSS? She said, "It's not hard." How long have you been learning? She said: "Just learned ". Actually, that's right! Is it difficult for me to learn CSS? I would say, "hard !" Why can I say it's hard?
CSS learning can be divided into the following phases:

Phase 1: A page can be made without thinking about the compatibility of the browser, but the page is written everywhere in the TABLE mode DIV.

Phase 2: I think of compatibility issues, but I cannot prevent them in advance. I only fix the problems and use the HACK technology in large quantities (I only know about the HACK technology, but I rarely use it)

Stage 3: bugs can be prevented in advance, but IDs, classes, and CSS are used in a large number of style sheets, such as "div p span ". This code indicates the SPAN sub-element of P in the DIV sub-element. In this way, you can define the SPAN style without adding a CLASS to the SPAN. This is the advantage of CSS. Why do we need to define a CLASS if we do not make good use of it!

Stage 4: This stage is the most difficult, with a good HTML semantic structure, reasonable CSS, and reusable styles. Good semantics includes this article and reasonable CSS. These two aspects will be written for research in the future.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.