Current Assignment(s)
P1 Workshop (Submission)
Due 11:55PM Wednesday, 10.03
Via a Child Directory
https://www.baseurl.com/about/
If you wished to have a “cleaner” looking URL, you could create an additional child directory labeled about/
and place a file saved as index.html
within that directory.
In the next sub-topic, you’ll see how an index.html
is one of those files browsers expect to find. Because of this, if an index.html
file is in a directory, you usually do not have to include it in the file path; the browser will request it automatically.
Note Notice how we do not add /index.html
at the end of the URL above; instead the URL simply ends with a directory slash (/).
. ├── index.html ├── about/ │ └── index.html ├── css/ │ └── style.css └── images/ ├── photo-1.jpg └── photo-2.jpg
development
- Previous
- Next