Home  >  Article  >  Web Front-end  >  What is the css initial attribute of p

What is the css initial attribute of p

藏色散人
藏色散人Original
2021-01-06 09:36:143009browse

The initial css attribute of p is "color:#000000;font:16px Microsoft YaHei;margin:16px 0;". The initial css attribute of p in different browsers is different. We can use the browser's initial css attribute. You can view it in the developer tools.

What is the css initial attribute of p

The operating environment of this tutorial: Windows7 system, Chrome76.0&&CSS3 version, Dell G3 computer.

Recommended: "css video tutorial"

What are the initial css attributes of the p tag?

We can view the initial attributes of the p tag through the developer tools

1. Create a new document, add a p tag, save it and open it with a browser

2. Press f12, click the dom selection tool, and select the p tag

What is the css initial attribute of p

3. Then the default attributes of the p tag will be displayed

What is the css initial attribute of p

4. When you want to restore the initial attributes of the p tag, you can overwrite it with css

p{
    color: #000;
    font-size: 16px;
    margin: 16px 0;
}

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of What is the css initial attribute of p. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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
Previous article:What file is box in cssNext article:What file is box in css