The 6 Most Effective Ways to Write HTML and CSS

The 6 Most Effective Ways to Write HTML and CSS

This article shares the 6 most effective methods, hoping to improve your efficiency and save you time.

1. Dynamic CSS

If you want to speed up your CSS coding, then you need to learn and master dynamic CSS. Most dynamic CSS adds nested riles, variables, mixins, and selector inheritance functions to improve code utilization.

2. HTML snippets

Using code snippets is a quick way to write HTML code. Zen Coding and HAML are recommended. First, it will get you up to speed very quickly, and second, it will avoid some human errors because all the code is tested and generated correctly.

3. CSS reset

The advantage of CSS reset is that it avoids browser incompatibility. Recommended: Eric Meyer's CSS reset and YUI.

4. CSS Grid layout

Many developers do not use CSS Grid Layout. The idea of ​​grid layout comes from traditional print publishing, and on the web, grid layout is very important in magazine type templates/websites. This method has been proven by a large number of developers to be an effective way to increase product design speed.

CSS Grid Layout has good cross-platform support and other features. Here are some related resources:

    Which CSS Grid Framework should you use for web design 960 Grid Layout YUI Grid layout Blue Print Grid layout 5. HTML/CSS Editor

    You need a good code editor. There are many other than Notepad, and each has its own features. For example, coda's ftp engine is very stable. Of course, you can also log in to the Open Source China Community to search for more open source code editors.

      Notepad++ (windows, free) Aptana (all platforms, free) Bluefish (all platform, free) Coda (mac, $99) Textmate (mac, $57) 6. Other online tools

      The following tools can help you save a little time.

        Backfire: Save CSS changes for Firebug. Live.js: Update CSS. CSS Auto Reload: Same as Live.js, but you can set the reload time. Yahoo Grid Builder: YUI grid creation. Markup Generator: Generate CSS tags based on HTML code. Coda Clip: Coda clip.

        If you are just learning HTML and CSS, it is recommended that you start writing code by hand. If you already have a solid foundation, then try the above methods.

        Enjoy coding :)

        Original article: http://www.queness.com/post/8004/6-most-effective-methods-to-code-html-and-css

<<:  Writing daily automatic backup of MySQL database using mysqldump in Centos7

>>:  Vue imports excel table, and automatically downloads the data that failed to import

Recommend

Example of using #include file in html

There are two files a.htm and b.htm. In the same d...

Web Design: When the Title Cannot Be Displayed Completely

<br />I just saw the newly revamped ChinaUI....

Solution to running out of MySQL's auto-increment ID (primary key)

There are many types of auto-increment IDs used i...

MySQL 8.0.17 installation graphic tutorial

This article shares with you the MySQL 8.0.17 ins...

Detailed explanation of webpage screenshot function in Vue

Recently, there is a requirement for uploading pi...

How to use negative margin technology to achieve average layout in CSS

We usually use float layout to solve the compatib...

Detailed explanation of the usage of compose function and pipe function in JS

Table of contents compose function Array.prototyp...

js to make a simple calculator

This article shares the specific code of making a...

Solution to high CPU usage of Tomcat process

Table of contents Case Context switching overhead...

Mysql sets boolean type operations

Mysql sets boolean type 1. Tinyint type We create...

js, css, html determine the various versions of the browser

Use regular expressions to determine the IE browse...

MySQL DML statement summary

DML operations refer to operations on table recor...