The website for Costa Coffee in the United Kingdom is created from scratch using HTML, CSS, and JavaScript. The process of development required the application of gained knowledge and comprehension of website sectioning, including the header, navigation bar, side navigations, aside, lists, and links. Effective CSS selectors and declarations are used to align pictures and text and to provide visual effects on HTML components. In addition, the developers have proven a comprehension of HTML Document Object Model (DOM) access through JavaScript, as well as the ability to recognize HTML components and make design-driven modifications. Finally, the website is effectively hosted online, leveraging the expertise and experience of many website publication methods.
Grab The Best Academic Assistance In Just One Click
The developer displayed a solid comprehension of how to organize a website using HTML tags. The website has the required components, including a header, navigation bar, side navigation, aside, lists, and links. A website that offers information about a company must have a layout that is uncluttered and simple to browse.
A CSS file is included on the website and is used to style the HTML components. The developer has shown knowledge of CSS rules for aligning pictures and text, implementing visual effects, and applying styles to various HTML components (Pratomo et al. 2019). They have also employed CSS selectors, such as universal, ID, class, type, child, and descendant, to target and apply styles to particular HTML elements. Using a CSS file has insured that the website's design is uniform across all pages.
Figure 2: CSS code for Designing
The developer displayed a solid mastery of CSS principles for aligning pictures and text and applying visual effects. There are various CSS effects on the website, including hover effects on links and buttons, a background picture for the hero section, and a gradient effect in the header (Shepiliev et al. 2021). The developer has also effectively targeted particular HTML elements using CSS selectors and applied styles.
The developer displayed an in-depth knowledge of HTML Document Object Model (DOM) access using JavaScript. They have utilized JavaScript to access and edit HTML components, including manipulating the source property of an image and the class list of an element. They have also included features such as a responsive menu and picture slider using JavaScript (Dutta et al. 2019). The implementation of JavaScript has enhanced the website's functionality and enhanced user experience.
Figure 4: JS Code for DOM Manipulation
The developer can detect HTML components using DOM tree access and make design-driven modifications using JavaScript. They have accessed HTML elements using several ways, including get-element by ID, class name, tag name, and query Selector. Also, they have utilized JavaScript to control the attributes of HTML elements, such as manipulating the source property of an image or the class list of an element.
Exhibit
Exhibit 1
Figure 5: Exhibit 1
The developer used JavaScript to generate, access, and modify the image and link attributes. For instance, they have used JavaScript to alter the source property of the homepage's primary image when a user clicks on one of the image slider's smaller pictures. In addition, they have used JavaScript to toggle the class of the menu button and navbar to create a responsive menu.
Exhibit 2
Figure 6: Exhibit 2
Exhibit 3
The website is presently hosted on REPLIT, a developer-friendly platform for creating and hosting projects. If the customer wishes to host the website on their domain, however, the developer will need to move the website's files and database to a web server. This requires knowledge of several hosting alternatives, such as shared hosting, VPS hosting, and cloud hosting, as well as the ability to move files (Therjanthruk et al. 2022). Also, the developer must verify that the website is safe and optimised for speed and efficiency.
Figure 7: Exhibit 3
Conclusion
In conclusion, the use of HTML, CSS, and JavaScript in the creation of the UK Costa website demonstrates the developer's expertise in web development. The developer used their expertise and understanding of HTML elements to construct the page's skeleton structure, which included sectioning, lists, links, and a footer. Using CSS rules for aligning pictures and words and adding visual effects illustrates the developer's knowledge of CSS selectors and declarative statements. The developer's expertise in JavaScript programming is shown by the usage of JavaScript for DOM access, image and link properties, and highlighted portions of the site. The successful deployment of the website to a hosting platform demonstrates the developer's understanding of website publishing procedures.
References
Dutta, A. and Zisserman, A., 2019, October. The VIA annotation software for images, audio and video. In Proceedings of the 27th ACM international conference on multimedia (pp. 2276-2279).
Pratomo, A.E., van der Schriek, E. and van der Veen, T., 2019. Test Driven Development in OWOW’ s Full-stack Web Development. International Journal of Industrial Research and Applied Engineering, 4(2), pp.46-50.
Shepiliev, D.S., Semerikov, S.O., Yechkalo, Y.V., Tkachuk, V.V., Markova, O.M., Modlo, Y.O., Mintii, I.S., Mintii, M.M., Selivanova, T.V., Maksyshko, N.K. and Vakaliuk, T.A., 2021, March. Development of career guidance quests using WebAR. In Journal of Physics: Conference Series (Vol. 1840, No. 1, p. 012028). IOP Publishing.
Therjanthruk, N., Simalaotao, P. and Sirisukpoca, U., 2022, July. Development of a Prototype of The Interactive Diabetes and Hypertension Consultation System with Web Mobile and Web Application. The 14th NPRU National Academic Conference Nakhon Pathom Rajabhat University.