The term project for 4WW3 (Web Systems and Computing).
The National Park Plaza site allows users to do the following:
Browse parks across Canada and provide readily accessible information.
Query parks based on different types of input (name or ratings).
Register an account to write reviews for and submit new parks to the database.
Collaborators:
Vanessa Truong (400023632) MacID: truonv1 Git User Name: nessa-art email: [email protected] Enrolled in CS 4WW3
Special notes:
CREATE TABLE statements were not made in an .sql file - they were run by accessing the databaseAccess.php file.
The following are answers to the inquiries needed for Add-on Task 2.
Add-on Task 2
Part (i)
The tag was incorporated in the sample object page, 'Bruce Peninsula National Park' under the 'National Parks' tab. There is an acorn logo at the top-right
corner of the webpage that will alternate between resizings as follows:
2 acorns (assets/acorn_2.jpg) when min-width is 800px
There are 2 attributes representing the 2 responsive images that the browser will use depending on the 'media' constraints defined, and an attribute
that represents the image the browser will fall back to if the former tag isn't supported.
The tags will present the images if the requirement specified by the 'media' attribute are satisfied. This would mean that the image 'search-tree-4.jpg' will only be shown in the browser if the media condition 'min-width: 800px' is satisfied, and the image 'search-tree 3.jpg' will be shown if the media condition 'min-width: 470px' is satisfied. The tag represents the image that will be shown if the 'media' conditions for both sources above can not be satisfied, or if support for tag is not available on the browser.
Part (ii)
Three positive goals that can be achieved through using and attributes:
You can dynamically resize images to fit screens of all sizes. If you have the same image in multiple sizes, you can choose to present each image under
different screen sizes conditions. Hence, when you're viewing an image on a laptop versus an image on a smaller tablet, the image can appear to dynamically
adapt to the screen's proportion.
You can showcase more image than one. If you have multiple 'source' attributes under theh 'picture' tag, you can set a different image for every source, so that
the webpage presents a different image with different resizing. This can create the allusion of a stop-motion animation and can be used creatively.
You can adjust the orientation of the picture. The tag has an attribute that allows you to orient your images a different way. This avoids the hassle
of having to orient the picture using an editor.
Part (iii)
A negative aspect of using and is that if a developer is using it for the purposes of presenting the same image but at different resolutions,
they would need to create multiple versions of that image in different resolutions, and link all of them separately in their own tags. Ideally, it would be
more efficient if the developer only has to upload one version of the photo (a high resolution version) and HTML can dynamically resize the image based on the developer's
commands for min-max constraints of the viewport.
A workaround for this would be to just use CSS styling's @media queries to resize the based on the specified screen constraints. This is a demonstration of how
using css styling is a better alternative as opposed to using HTML's styling, which is very limited.