For SQL you are not instructing the computer what to do, you're describing the rules and structure of the result that you want in some coded language such that an execution engine can determine how to deliver the expected result.
For HTML you're not instructing the renderer what to do, you're describing the rules and structure of the result that you want in some coded language such that the rendering engine can determine how to deliver the expected result.
If I'm wrong, I would be very happy to be corrected because I've argued this for a long time with people who don't know what a programming language paradigm is - so I'd like to know if I'm mistaken.