Is it possible to use something like "get all p tags from body" in the next variable?
The reason you cannot use that is because `getElementsByTagName` returns a `NodeList`, not an element. It will work if you select only one element that matches:
var content = document.getElementsByTagName("body")[0];
// ------------------------------------------------^^^
var paragraphs = content.querySelectorAll("p");
However, it's simpler to just use `document.body` like this:
var paragraphs = document.body.querySelectorAll("p");
(In this specific scenario where `p` elements cannot exist outside of `body`, both methods are equivalent to `document.querySelectorAll`.)
If you specifically want all `p` elements that are direct children of `body`, then you can do:
var paragraphs = document.querySelectorAll("body > p");