There are several writing formats for css
This article mainly shows you "there are several writing formats of css". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn this article "there are several writing formats of css".
There are three writing formats for css.
Inline style: means to write a style in an inline
For example, write my color in an inline style
Only applicable to (font color and background color) and tags inside, but not to tags other than: head,title, etc.
Embedded styles: use style to uninstall all styles in style.
For example, say:
P {color:red; background:blue; border:1px solid green;}
Write my style in an embedded way
Outreach style: the popular point is the external style, using the link style to connect to the external .css file.
For example, say:
Yes, it's so simple, just write the css style to another .css text and then only need link to display the style on the page, but be sure to pay attention to the file path! If the path is wrong, you can't drop it either.
The above is all the content of this article "there are several writing formats of css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!