Are web queries === elements + selectors?

Do you consider it true that the term “web query”, as in document.querySelector actually reflects the term: “elements (tags) + CSS selectors (such as id’s and classes)”.

If so, where are “media queries” fit in?

I guess that since the invention of media queries, they too, should be included in this broad definition of a “web query”, so it would be:

“elements (tags) + CSS selectors (such as id’s and classes) + media directives (media queries)”.

Not really. querySelector is a method defined on the document object.

For me, a web query sounds like looking up information on the web using Google (or similar).

2 Likes

Probably rather something like “CSS selector → element reference”.

That’s CSS only and used to apply certain rules based on the screen size, ratio etc… so something very different really.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.