Video Notes: HTML Images, Tables, and Forms
Images and File Organization
- Project structure context from transcript: work within an assignment folder and organize assets in an images folder.
- Good practice: download images into a folder named images.
- If you prefer, you can link to an image online instead of storing it locally.
- Example scenario from transcript: there is a local image of a tree stored in the images folder that you plan to use.
- How to reference local images in HTML: use the image tag and point to the folder, e.g. the speaker references using an image path like /images/filename.jpg or images/filename.jpg depending on your setup.
- The exact folder path shown in the browser may vary from student to student based on their file structure.
- Key takeaway: organizing images in an images folder keeps assets centralized and easier to manage when building HTML pages.
Displaying Images with the img Tag
- The speaker demonstrates using the image tag to display an image:

- You can either display a local image from your images folder or link to an image hosted online.
- The path inside src should reflect your project structure; if you saved the image as tree.jpg in the images folder, you might use /images/tree.jpg or images/tree.jpg depending on how your server path is set up.
- The example relies on a file that exists in the folder and will render in the browser if the path matches your setup.
Working with Local vs Online Images
- Local image in project: place the image inside your project’s images folder and reference it via a relative path.
- Online image: you can link directly to a remote image URL if you don’t want to download it locally.
- The choice affects portability and deployment; local images require the image to be uploaded with your project, while online images depend on the external resource being available.
- Table concept expressed in transcript: you can display tabular data (e.g., roles and names).
- The first column example mentioned: "First Name" as a data column under a header like Role, with subsequent columns as needed.
- Table header vs data cells:
- Example structure mentioned implicitly: you define a row for headers, then additional rows for data entries.
- Adding more rows: to display more entries, add more
rows with corresponding cells for each column. |
Quick Practical Connections and Considerations
- Accessibility tip implied: pairing a label with an input improves accessibility (label describes the input’s purpose).
- Real-world relevance: common patterns for forms and tables are foundational for almost any web page that collects user data or displays structured data.
- Relationships to back-end: names on form inputs become keys in server-side arrays (e.g., $POST or $GET in PHP) for data processing.
- Ethical/Practical implications: organizing assets and cleanly structuring HTML helps maintainability, readability, and reduces errors when data is submitted and processed.
Summary of Key Points
- Use an images folder to store image assets; link to images locally or via online URLs.
- Display images with the img tag and correct src path that matches your folder structure.
- Build tables with a header row using th for headers and td for data cells; add rows with additional tr elements as needed.
- When creating form inputs, provide a descriptive label and an input with type="text" and a unique name attribute so server-side code can retrieve the value.
- The transcript ends with an incomplete sentence about what else is needed to display the input in HTML; the exact detail is not specified in the provided text.