Without underline '/', the link is directly introduced The directories under this folder are underlined, which refer to the directories under the site. Without underline '/', the link is directly introduced The directories under this folder are underlined, which refer to the directories under the site.
Home >Backend Development >PHP Tutorial >The difference between HTML imported files and whether they are underlined
<span><</span><span>link </span><span>rel=</span><span>"stylesheet" </span><span>href=</span><span>"public/bootstrap-3.3.5-dist/css/bootstrap.min.css"</span><span>></span>does not have the underscore '/', and the link directly introduces the directory under this folder. With an underscore, the link directly introduces the directory under the site.
<span><</span><span>link </span><span>rel=</span><span>"stylesheet" </span><span>href=</span><span>"/public/bootstrap-3.3.5-dist/css/bootstrap.min.css"</span><span>></span>These two URLs are different, and the imported URLs are also different.
The file introduced above is: http://localhost:63342/Sphinx/blog/public/bootstrap-3.3.5-dist/css/bootstrap.min.css
The file introduced below is http://localhost:63342/ public/bootstrap-3.3.5-dist/css/bootstrap.min.css
The difference lies in whether it is a file starting from the root directory. Pay attention to the 404 error caused by the underscore /
The above introduces the difference between HTML imported files with and without underscores, including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.