Thank you, @ronpat. As for my multiple posts, part of the problem is that I did not initially realize there were so many replies. The other problem is that (unlike other sites) the features for quoting are not visible until I create a reply. I now know where they are but previously I just forged ahead with separate replies.
[quote=“ronpat, post:18, topic:219020”]
If you consider this part of his statement to be superfluous…
[/quote]Yes, that part of @SamA74’s reply was discouraging. The important thing is that no one has said anything about CSS existing elsewhere. So unless I misunderstand something, the answer probably is simply that I have identified all the possibilities, there are no other places that CSS can exist physically in the body.
People are making the question so complicated. I tried to limit the question. When I say “physically”, I mean syntactically (and maybe semantically), not logically, as in how it is used. I am asking only about what might appear in the specifications of CSS. You could also call it scope. The issue seems very simple to me. I just want to ensure I understand the scope of CSS.
[quote=“Mittineague, post:19, topic:219020”]
I think what you are getting at is specificity.
[/quote]I think what you are getting at is the use of CSS instead of the syntax of it.
[quote=“SamA74, post:20, topic:219020”]
The class attribute is very important in the use of css. But I would not consider it to be css ‘within the body’ it is a html tag.
[/quote]I think that is differences of terminology.
[quote=“SamA74, post:20, topic:219020”]
They are just the things that join the css and html together, allowing you to keep the two separate.
[/quote]If the class attribute is useless without a corresponding CSS class then the class attribute is within the scope of CSS.
[quote=“SamA74, post:20, topic:219020”]
The general message is to avoid putting any css in the body.
[/quote]You just don’t get it.
[quote=“SamA74, post:20, topic:219020”]
which you say you are not interested in
[/quote]Because best practices and personal preferences is not relevant.
[quote=“SamA74, post:20, topic:219020”]
is is a broad subject
[/quote]No, the CSS language is very simple in this context, as I indicated previously in this post.
[quote=“felgall, post:21, topic:219020”]
An id is definitely an HTML attribute that need not have anything to do with CSS.
[/quote]Yes the id attribute is confusing.