1. Understanding File Paths |
|
š Notes: If yourĀ index.htmlĀ file needs to display an image namedĀ logo.png, how does the HTML file tell the browser where toĀ **find**Ā logo.png?
|
|
![]() |
š„ Watch: |
2. Types of File Paths |
|
š Notes:The two main types of file paths are Absolute Paths and Relative Paths. |
|
![]() |
š„ Watch: |
3. Relative Path |
|
š Notes:A relative file path gives directions to a fileĀ starting from the location of the file you are currently in. You will use this 99% of the time for linking your own files together (images, CSS, other HTML pages). |
|
![]() |
š„ Watch: |
4. Absolute Path |
|
š Notes:An absolute file path gives theĀ full, complete URLĀ to a resource on the web. It starts withĀ http://Ā orĀ https://. |
|
![]() |
š„ Watch: |
5. Boilerplate Code |
|
š Notes: The solution is to create a standard, universal starting templateāaĀ **boilerplate**. This is a block of code that you will start every single HTML file with. It's not something you need to reinvent each time; you just copy-paste it and fill in the blanks.
|
|
![]() |
š„ Watch: |
6. div tag |
|
š Notes: The most basic solution is to invent a generic,Ā **meaningless**Ā container. Its only job is to be a box that you can put other things into. It shouldn't have any inherent meaning or style; it's just a grouping mechanism.
|
|
![]() |
š„ Watch: |
7. class & id |
|
š Notes: The logical solution is to invent two types of labels (which we callĀ **attributes**) that you can add to any HTML tag.
|
|
![]() |
š„ Watch: |
8. Header, Main & Footer |
|
š Notes: - **header**: This is the box for the introductory content at the top of your page or a section. It typically contains your logo, site navigation (nav), and main heading. |
|
![]() |
š„ Watch: |