That way you'll bump into fewer problems later down the road. For these reasons, it is best to get into the habit of writing your folder and file names lowercase with no spaces and with words separated by hyphens, at least until you know what you're doing. The Google search engine treats a hyphen as a word separator but does not regard an underscore that way. The short answer is that you should use a hyphen for your file names. It's better to separate words with hyphens, rather than underscores: my-file.html vs. Some servers will replace the areas in your filenames with "%20" (the character code for spaces in URLs), resulting in all your links being broken. For example, if you use spaces in your filename, some systems may treat the filename as two filenames. Browsers, web servers, and programming languages do not handle spaces consistently.So for example, if you put an image on your website at test-site/MyImage.jpg and then in a different file you try to invoke the image as test-site/myimage.jpg, it may not work. Many computers, particularly web servers, are case-sensitive.You'll notice that throughout this article, we ask you to name folders and files completely in lowercase with no spaces. Solve common problems in your JavaScript code.Express Tutorial Part 7: Deploying to production.Express Tutorial Part 6: Working with forms.Express Tutorial Part 5: Displaying library data.Express Tutorial Part 4: Routes and controllers.Express Tutorial Part 3: Using a Database (with Mongoose).Express Tutorial Part 2: Creating a skeleton website.Express Tutorial: The Local Library website. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |