Home > Web Front-end > CSS Tutorial > How to set all tags in css

How to set all tags in css

醉折花枝作酒筹
Release: 2023-01-07 11:43:26
Original
4242 people have browsed it

Setting method: 1. List all tags, the syntax is "body,ol,ul,h1,h2,h3,h4,h5,h6,p,th...{Attribute: attribute value; }"; 2. Use * to set, and the syntax format is "*{attribute:attribute value;}".

How to set all tags in css

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

First method:

body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{
margin:0;
padding:0
}
Copy after login

Second method:

*{
margin:0;
padding:0
}
Copy after login

Recommended learning: css video tutorial

The above is the detailed content of How to set all tags in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
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