Popcorn Hack 1
Vector Images
Practice MCQ
B
Popcorn Hack 2
Base64 is not a secure encryption and it also increases data size
Practice MCQ
B
Homework Hack
A hex color code is a method to show colors using hexadecimal values. I have used this many times to style pages with CSS, in the current Pilot City project as well as the project I made last trimester.
Base64 is an encoding system that converts binary data to text but increases data size and is not secure. It is used to embed images in HTMl without accessing external files, which we also used in our project last trimester in order to display some images on our page.
Base64 can be used instead of a regular image file in order to reduce the reliance on external URLs and also to send fewer HTTP requests. In our Pilot City project, we used Base64 to create a small image/button that switches from light to dark mode (and other things of course).

This image is being displayed with the HTML tag that accesses the file /images/logo.png. The image is stored in the image directory. The notebook converts this into a base64 string or keeps a reference path to show the image inline.