The Student Room Group

how to view this html code as it would look on a phone without having web hosting

i'm currently coding a website w html and css and i want to test how it would run on an iphone to see if it is consistent/appropriate but can't work out how to do it without having it uploaded as an actual website. i have the files on my phone but when i open them it just shows the website without any css.
Original post by rose.clm
i'm currently coding a website w html and css and i want to test how it would run on an iphone to see if it is consistent/appropriate but can't work out how to do it without having it uploaded as an actual website. i have the files on my phone but when i open them it just shows the website without any css.

Is the CSS in the same folder at the HTML?

What does the <link> element which references the CSS look like? Is it just something like this:
<link rel="stylesheet" href="styles.css">
Or does the href contain a full URL or other path?
Phones aren't the best place to do coding.

You can simulate phone like condition on your pc. Right click Dev tools or f12 and find a mini icon somewhere that allows you mobile view. I used it a lot last time.

Quick Reply

Latest

Trending

Trending