Can use CSS Properties as a HTML Attibutes? -


example:

p {             color:blue;             font:arial;             font-size:30px;             } 

all css properties can html attribute?

<p color="blue" font="arial">some text</p> 

css properties not valid html attributes, can set inline html element through style attribute.

e.g.

<p style="color:blue;font:arial;font-size:30px;"> content.....</p> 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -