Using the style attribute in the html tag is to facilitate us to use the css style directly. This way we can add css styles when changing the object. More convenient
style syntax structure
style="css style"
Use style in common tags
General html tags You can add the style attribute to use the css style directly. For example
, etc., basically body and Tag objects used within can be added to css styles using the style attribute. Where
style appears
1, html style tag
2, font-style css italic
3, css style style
The above is how to use style in HTML. For more exciting information, please pay attention to other related articles on the php Chinese website!
Related reading:
How to display circular images in css3
##What is the difference between class and id
How to know whether the browser supports html5
The above is the detailed content of Use css to operate style attributes in html tags. For more information, please follow other related articles on the PHP Chinese website!