How do I run a file on localhost?

前端 未结 7 2074
Happy的楠姐
Happy的楠姐 2020-12-13 06:58

How do I actually run a file on localhost? I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost?

7条回答
  •  醉梦人生
    2020-12-13 07:16

    i am working in VScode currently. i was wanting to run my html page just to see all my main elements.

    1) first, in vs, right click desired html file and choose "copy path". do not choose relative.

    2) finally, paste html path in address bar (i used chrome) and hit enter. your html page should display. hope this helps someone out.

提交回复
热议问题