Lab 01 Index Home List Books Civil War
Lab01indexhtmlhome List Bookslab01wwwimgbookscivil Warjpgla
Build a simple website with four web pages for an online PHP bookstore, including consistent navigation, banner, main content, and footer. Modify HTML files to include hyperlinks, images, headers, tables, and content as specified. Create additional pages for book details, and ensure all links function correctly. Test all pages in a browser before submission. Zip the entire folder and upload as instructed.
Paper For Above instruction
The project involves constructing a basic but structured website for a PHP-based online bookstore. The site includes four key pages: the homepage (index.html), a list of books (books.html), and two book detail pages (civilwarbattlefieldguide.html and greaterjourney.html). The goal is to develop consistent navigation, banners, and well-organized content following detailed specifications provided in the lab instructions.
First, the homepage (index.html) needs to be modified to include functional navigation links, realistic images, styled headers, and descriptive paragraphs. The navigation bar should contain hyperlinked texts “Home” pointing to index.html and “List Books” pointing to books.html. The logo image should be embedded into the designated table cell with specified attributes for size and alignment. The banner on the right should have headings such as “PHP Online Bookstore” and “Learn how to build an online bookstore with PHP and MySQL”. Below these, two paragraphs should introduce users to the site’s features, including a shopping cart, search, login, and registration options, followed by a list of these features and a footer copyright notice.
Next, creating the books list page (books.html) involves modifying the copied template to replace the main section with a title “Books in Our Store”, removing unnecessary paragraphs and lists, then inserting a table structured with six rows and four columns, set to a width of 800 pixels, with cell spacing and padding specified. The table headers should include titles with hyperlinks: “The Civil War Battlefield Guide” linked to civilwarbattlefieldguide.html and “The Greater Journey: Americans in Paris” linked to greaterjourney.html. The table should display additional books with titles, authors, and prices or descriptions as appropriate.
To create the detailed pages for each book, such as civilwarbattlefieldguide.html and greaterjourney.html, copy the index template and modify the main content area. For the civilwarbattlefieldguide.html, change the main heading to “The Civil War Battlefield Guide”, delete existing paragraphs, and insert a table with seven rows and three columns, with specified widths, borderless except for the table border, and cell padding. Merge all seven cells in the first column into one spanning cell, place the relevant book cover image there, and fill the remaining columns with descriptive text or author information.
Repeat similar modifications for greaterjourney.html with the heading “The Greater Journey: Americans in Paris”, and adjust the table accordingly. These steps ensure each page contains the appropriate headers, images, and content formatting to produce a cohesive and navigable website.
After completing all pages, validate the site's functionality by opening index.html in a browser and testing all hyperlinks—navigation bar links, book detail links, and image displays. Conduct thorough testing to confirm visual consistency and correct linkage before final submission. Lastly, zip the entire Lab01 folder containing all HTML files and assets, and upload the archive as required by the lab instructions.
Effective execution of these steps in HTML ensures the website adheres to specified design, layout, and content standards, demonstrating proficiency in fundamental HTML structuring, linking, table formatting, image handling, and multi-page website creation. Proper testing and packaging finalize the project for evaluation, reflecting an understanding of client-side web development principles within the context of creating an online bookstore interface.
References
- Duckett, J. (2014). HTML and CSS: Design and Build Websites. John Wiley & Sons.
- Harwani, M. K. (2017). HTML5 and CSS3 All-in-One For Dummies. John Wiley & Sons.
- Levy, H., & Nugent, S. (2016). Building Websites with HTML and CSS. McGraw-Hill Education.
- W3Schools. (2023). HTML Tables. Retrieved from https://www.w3schools.com/html/html_tables.asp
- Mozilla Contributors. (2023). HTML Element Reference. MDN Web Docs. https://developer.mozilla.org/en-US/docs/Web/HTML/Element
- Practical Web Design. (2019). Creating Multi-Page Websites. Wrox Press.
- O'Reilly, T. (2014). Learning PHP, MySQL & JavaScript. O'Reilly Media.
- Responsive Web Design. (2022). Best Practices for Multi-Device Compatibility. Smashing Magazine. https://www.smashingmagazine.com/
- HTML.com. (2023). HTML Tables. Retrieved from https://html.com/tables/
- Online Tutorials. (2023). Building a Webpage with Tables and Images. freeCodeCamp.org. https://www.freecodecamp.org/