Home > Web Front-end > HTML Tutorial > When building a website, should you write html or css first? Which effect is better

When building a website, should you write html or css first? Which effect is better

云罗郡主
Release: 2018-10-10 10:55:59
Original
3194 people have browsed it

Many programmers will have a problem when making websites. They don’t know whether to write HTML or CSS first. I want to know whether experienced programmers should write CSS or HTML first. Next, let’s take a look at the steps of experts. How it is.

When building a website, should you write html or css first? Which effect is better

For this reason, the editor went online to Baidu and found that there are many answers. Some experts write CSS first and then HTML, and some experts do just the opposite, and some do it at the same time. To write, let’s take a look at what these three situations are like.

1. CSS and then write html

For many experienced CSS masters, they will choose to write html first, and then choose to write css. Because css Inheriting the parent has good advantages, so we can write css first and then write html, but for novices, we cannot do it this way. If we write css first and then look at it later, we may forget how to call it. Currently, the user experience is quite poor due to compatibility issues with CSS. Some experienced experts often use inheritance parent, so that there will be no calling problems.

2.html and then write css

When some novices are making websites, they cannot write all the websites in time, or due to lack of experience, they are unable to complete the website in time. When various problems arise, we have to modify the html. If the html file is relatively large, it may affect the overall situation.

3. If you write at the same time, and use it with the browser, whether you write css first or write html first, it is very good and less prone to errors.

The above is about whether to write html or css first when building a website? Which one is more effective is fully introduced. If you want to know more about HTML tutorials, please pay attention to the PHP Chinese website.


The above is the detailed content of When building a website, should you write html or css first? Which effect is better. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template