Answer the question
In order to leave comments, you need to log in
Can html recognize the device?
Can html itself recognize the device, i.e. I need to make a mobile version, through bootstrap, if I do that, I have to edit and disable too much, it's easier to re-write the html structure for a mobile device. That is, I don’t need to cut or customize something in css, I need to change the html itself for the mobile version, but without a redirect to some m.sait.ru
Answer the question
In order to leave comments, you need to log in
HTML cannot, it is necessary to determine the device on the server side and connect the template necessary for it. Google towards RESS.
Use media queries in css, and write properties in css for the required screen width
Javascript determine the width of the viewport and load the desired page.
Or even stupidly in html srzau 4 pages, and through css you determine which one to display.
It would seem that in the second case, you will have to load 4 times more in size, but in reality it turns out that this option is faster than a Java script and only loads something specifically.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question