What are the seven aspects needed to write CSS?
Today, I will talk to you about what the seven aspects of writing CSS refer to. Many people may not know much. In order to let you know more, Xiaobian summarizes the following contents for you. I hope you can gain something according to this article.
Seven things to watch out for when writing CSS
As CSS web page layout is more and more widely used, more CSSers begin to write CSS, how to write efficient and standardized CSS code, today to introduce to you, must pay attention to seven aspects:
1. Use outer style instead of interline style or embedded style
◆ Interline style is not recommended
XML/HTML code
Page title - book.chinaz.comtitle> head> ... p> body> html>
◆ Inline styles are not recommended
XML/HTML code
Page title - book.chinaz.comtitle> p { color: red; } style> head> ... body> html>
◆ Recommended Outreach Style
XML/HTML code
@import url("styles.css"); style> head> ... body> html>
◆ Recommended way to introduce external style sheets
XML/HTML code