I'm very confused about the syntax of media queries, I saw many examples and each one has a different syntax, for example:
@media only screen and (max-width: 420px) {...}@media screen and (max-width: 420px) {...}@media (max-width: 420px) {...}
What is the different between these three examples?
Are all of them legal?
And another question, I understand that you can write all instead of screen, but I never saw it in any example, why? is there something wrong with writing like this?
@media all and (max-width: 750px) {...}
I know that sometimes people connect their mobile or PC to the TV and watch the things there, so if I want that my website will display correctly also on TV, isn't it better to use all instead of screen? (as I understood the option 'tv' was Deprecated).
Thanks.