Inline CSS inside <div> tag to apply only to certain tags
I know I can use the "style" declaration within the <div> tag. However, I'm wondering if I can further refine or limit it so that this style would only applies to certain tags, such as <li>, but not more generally to others such as <p> or <hi>, etc. (all within the confines of the division).
Someone told me that you can't do this without using CSS <style></ style> tag in the header of the page or a separate CSS file which you reference.
But I thought I'd check here to make sure.
be efficient -- avoid inline STYLE attributes
Should emphasize that using numerous inline STYLE attributes (like Freedda seems to be inclined to do) is about as bad as using deprecated <FONT> tags</FONT>. CSS has freed us of that curse and eliminated the need to individually / manually format each tag.
The HTML tags are for "structure" of the document content; CSS style rules is for the appearance of the page.
Using the various CSS selector options, the HTML <tag>s can be very specifically styled.