Inline css styles

Where can CSS styles be written? From the perspective of the form of CSS style code insertion, it can be basically divided into the following three types: inline, embedded and external. This section first explains the inline style.

Inlinecss style sheet is to write the css code directly in the existing HTML tag, such as the following code:

这里文字是红色。

Note that it should be written at the beginning of the element In the tag, the following writing is wrong:

这里文字是红色。

And the css style code must be written in style="" double quotes. If there are multiple css style code settings, they can be written together, in the middle Separate with semicolons. The following code:

这里文字是红色。

Continuing Learning
||
认识html标签

PHP中文网,超酷的互联网、IT技术免费学习平台,创新的网络一站式学习、实践体验;服务及时贴心,内容专业、有趣易学。专注服务互联网工程师快速成为技术高手!

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!