For new website developers, should we first learn HTML and CSS before learning PHP? should we first understand some front-end knowledge and then learn PHP?

Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply: First of all, there is no restriction between the two things, and there is no question of learning one thing first and learning another thing well. In fact, just a few years ago I often thought about similar issues, such as the specialization of python or php, whether or not I had to devote myself to learning a framework or something.

Later, I found a conclusion on a forum that I could convince me that, first of all, the language is not good or bad, only suitable or not, and the field is not good or bad, so what to learn depends on the environment around you. for example, there is a python cool-man around you, and he has studied the python source code. Why didn't such cool-man start learning from python. If you don't have any conditions around you, don't look at the front-end, and then look at python, php and other background, which one you like to learn. There is always one suitable for you.

If you are getting started, you can start with js. it is useful when JavaScript is finished. for example, if you write a chorme plug-in, you can directly install it on your computer and run it, it will bring a lot of motivation to your learning. Of course, with your in-depth understanding, you can develop towards linux and other directions.
Four parts
Here we roughly list the four key points of knowledge, which you need to master when learning about website development.
  1. Basic knowledge of web frameworks (such as Ruby on Rails), also known as "contains website modules and their connection structures ".
  2. Front-end development, also known as "how to make the content appear in the correct position, and it looks good in the browser ".
  3. Version control, also known as "how to use free and easy-to-use software, enables programmers to save their program versions in an organized manner. In this way, they do not have to worry about version chaos caused by code modification, but also can work well with other programmers for development ".
  4. Deployment, also known as "how to truly put your website on the Internet ".
PS: mark these parts as 1 to 4, but this does not mean that there is any specific order between them. You can learn these things at the same time.


Part 1: Select a web framework and start learning it
The time required for this part is similar to this mode, that is, "select a web framework" => "about 10 minutes ". "Learning this framework" => "many (happy) hours ".
So what is a web framework? In my understanding, people often need to add the same things to a new website every time they decide to create a new website. Because these are repetitive and boring jobs, programmers have developed frameworks (such as Rails) that can move a lot of repetitive work out of web development. Rails stands for "better conventions than configurations ". It means that if you want to develop in the agreed way, Rails will simplify web development.
Part 2: learning front-end things
The incomplete/inaccurate definitions of "frontend" and "backend" may be like this: "backend" in web development refers to the location where you store and organize website data. For example, a website like Yelp needs to store many things: its user and user's personal data, a large amount of restaurant information, which user has made a comment on a special restaurant, and so on.
Yelp stores the information on servers, which are large computers distributed in different places. When you search for "Pizza in San Francisco", your computer sends a request to the Yelp server, after receiving the request, the Yelp server sends a request in HTML format (Yelp instructs the server in this way every time) to your browser, and the browser will be rendered (for example: separate HTML text and images, and display these images and text in the correct way in the browser window ). The subsequent part-instructions on how data should appear in the user window (rather than what data should be sent back)-is "front-end ".
Part 3: learn version control (for example, Git)
Generally speaking, the version control system enables programmers to save their code at any time point (officially "commit. When a project ends, a programmer may have accumulated hundreds or thousands of such code backups.
I didn't realize the importance of version control before. When I was writing an article, I did not save every modification I made to the article to the word document. When I write code, will the situation be different?
It turns out that there are at least two answers. First, programmers often encounter unexpected problems when writing code. When a problem occurs, we can easily roll back to the previous working code version. Then, programmers often work in the same project. In this case, they need to be able to easily merge their code. A version control system like Git (currently the most popular) can easily achieve the above two points.
Part 4: learn how to deploy (such as Heroku)
When you develop a website, most of the time you perform verification checks in your development environment-in other words, on your own computer, rather than on the Internet.
The reason for having such a development environment is simple: uploading your code to a remote server takes some time (for example, uploading your code to an actual server on the Internet ). Because your website is in the development stage, you need to constantly check your website, and every time you upload new code, you need 20-30 seconds to wait for the server to respond, then we can see the effect of running the new code, which is really annoying.

The above is purely extended reading. for your questions, I suggest you:
  • Since you are engaged in front-end operations, html and CSS are required.
  • PHP is a powerful server-side scripting language for creating dynamic and interactive websites. it is extremely suitable for website development and its code can be directly embedded into HTML code.
  • Understanding the front-end knowledge not only makes the communication smoother, but also makes the design more reasonable,It is helpful for the design process..

Summary: first, we will learn html and CSS, and then we will be able to use the html and CSS we have learned before when learning and using PHP. This helps you get familiar with the use of these three languages.Why do I think PHP front-end technologies are higher than ordinary designers? We will design Coding... no... more... right... there is no association between the two technologies, and neither of them will be enhanced or weakened.
From the perspective of looking for a job in salary, learn php first. money and multiple languages are not good or good, but suitable or not. if there are no advantages or disadvantages in the field, just like or dislike it. so what to learn depends on the environment around you, for example, there is a python cool-man around you, and he has studied the python source code. Why didn't you start learning python. If you don't have any conditions around you, don't look at the front-end, and then look at python, php and other background, which one you like to learn. There is always one suitable for you. For a long story, I don't know whether the questioner accepts it. I am still going to the topic: first understand basic html and then learn php.
When you learn php, you cannot go without presenting dynamic pages on the page. it is helpful for you to understand how html represents pages. at least, you know how to write a php page. Simply learn a little HTML, and then play with the open-source program imitation site. after dozens of sites in the evening, I started to develop open-source programs. I found it hard to learn the basics of php, start to play YII, and then play with a bunch of projects without restrictions. now let's ask this question again.
Dongying website construction
Http://www.uu546.cn Let's take a look at the examples of css implementation and learn from each other:

Drawing hellokitty cat with pure p + css3 code
Doraemon blue fat man is coming, html5 + p + css3 code drawing robot cat
Draw cute girls with pure p + css3 code First, learn the basic HTML CSS JS
Then learn the backend php asp. NET

Shenzhen website design Shenzhen website construction
Http://www.sj4a.cn/

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.