Answer :
To keep the file size manageable while using graphical elements on his web page, John should use specific image formats optimized for web use. Here are the recommended formats:
1. JPEG (Joint Photographic Experts Group): JPEG is suitable for photographs and images with complex color schemes. It uses lossy compression, meaning it reduces file size by sacrificing some image quality. JPEG is commonly used for web images due to its small file sizes while maintaining decent quality.
2. PNG (Portable Network Graphics): PNG is ideal for images with text, line art, or logos that require a transparent background. PNG uses lossless compression, preserving image quality without losing detail. It supports a wide range of colors and is great for graphics with sharp edges or text overlays.
3. SVG (Scalable Vector Graphics): SVG is a vector image format that scales without losing quality. It is ideal for graphics like logos, icons, or illustrations that need to be scaled to different sizes without pixelation. SVG files are usually smaller in size compared to raster images like JPEG or PNG, making them efficient for web use.
By using these image formats appropriately based on the type of content John wants to display on his web page, he can ensure a good balance between visual quality and file size optimization.