In my local website, there is error that I can't open file.
llike this
How can I solve this problem???
Related
I am newbie in web development. I have installed atom and was working on project using HTML and CSS. Atom was working absolutely fine with HTML code however when i tried to integrate external css file with HTML then it gives the following error. Can anybody please help. the error is as follows:
linter-csslint:: Error while running CSSLint!
'"node"' is not recognized as an internal or external command,
operable program or batch file.
Try installing NodeJS seems some others that use Atom with CSSLint also had this issue: AtomLinter/linter-csslint
I'm not sure how important CSSLint is to this project but if you don't need it try and removing it from your package list before you try downloading anything (if its a bare bones project)
I'm trying to learn HTML, and I have a problem. When I try open my blog.html with live server I get an error code saying 'Cannot GET /blog.html/'.
I am not sure why, since my index.html page opens fine with live server.
I cannot include pictures, but inside my main folder for the website, I have index.html, blog.html and a folder for images.
Sometimes Live Server doesn't save files to the server.
Try restarting VS Code or editing the file and then saving, and then try again.
I worked a lot with Visual Studio Code, but since yesterday on all my devices it says: You don't have an extension for debugging HTML.
After a few tries I deleted VSCode and re-installed it. It worked right but as soon that I close VSCode and re-open it, the error keeps showing.
I've noticed that when I close it there is a tiny update box. I've reinstalled it a few times but it keeps happening.
Go to RUN and select ADD Configuration...
After select your browser and bingo!
It seems launch.json file is missing. Go to Run and Debug and click Create a launch.json.
Using launch.json didn't work for my html file. All I did was paste the path of the file into my browser and it worked fine for me.
I'm using express + heroku to host a landing page prototype.
When running the webpage locally all fonts load correctly.
When loading the page on heroku, the fonts won't work most of the time...
My css files are under /public/css/style.css
#import url("https://fonts.googleapis.com/css2?family=Playfair+Display&family=Helvetica");
The error I get on console is:
GET https://fonts.googleapis.com/css2?family=Playfair+Display&family=Helvetica net::ERR_ABORTED 403
I have tried to change the way I download the fonts with the link tag:
<link href="https://fonts.googleapis.com/css?family=Playfair+Display&family=Helvetica" rel="stylesheet">
Same issue...
Any ideas ?
Thanks!
I used to have the same issue but deleting the assets folder located in the public folder solved the problem for me. This will let Heroku precompile the css files for you and not use the files generate by running rake assets:precompile locally.
This fellow seemed to have a similar problem to yourself:
http://robert-reiz.com/2012/11/16/google-fonts-on-heroku/
I have been struggling with this all morning and I have not had much luck.
I am trying to get the following stackoverflow post to work: How to remove .html from URL
Here is my file directory with the htaccess file:
Here is my code that works fine using .html
So I went into sublime text and posted the same code into a .htaccess file as shown here (also in my directory first pic):
I then changed my links and removed .html
But I get an error
If anyone could please tell me what I'm doing wrong I would be grateful! Been bashing my head on this all morning
.htaccess is a file used to control access for Apache web servers. It won't affect anything unless you're running and accessing an Apache server. From your screenshots I can see that you're directly opening a file from your hard drive.
Your browser is saying File not found because you're trying to access a non-existent file. The address bar in your browser should say this:
file:///Users/mikegeng/Documents/GitHub/MichaelGeng.github.io/index.html
.htaccess is used by Apache Webserver. You must install and configure an Apache Webserver and access your site through http://localhost for example.
Currently your .htaccess is completely ignored until your site is served by Apache.