HTML page layout, which extensions or image formats to choose - jpg, jpeg, png, gif, svg
When coding web pages on HTML often need to use tags, which assume the presence of an image. The path to such images is usually indicated in a special attribute. Before using images on the site, you need to prepare them, as well as decide which image extensions to use on the site .
There are many options for extensions, you should use only the most popular ones. It is important to remember that the extension is best written in lowercase (small) letters and, accordingly, also written in HTML code. Otherwise, the picture may not be displayed.
Consider the following extensions - jpg, jpeg, png, gif, svg :
- jpg and jpeg are essentially the same thing, just different names, but it's best to always write jpg . This extension is the most optimal option - a small size of output files, many website optimization services strongly recommend using this format, as the file size decreases, which means that the site loading speed increases. But the quality may not be very acceptable, then it is worth lowering the compression ratio or using a different format;
- png is a great option, this format was created just for the web. Image quality is acceptable, but file sizes can be large. If you need support for transparency, this is a format that is beyond competition;
- gif - should be used when it is necessary to make animation on the site. In other cases, it is recommended to use other formats;
- svg is a vector format, which means that the image is described by formulas, which allows you to get maximum quality even when scaling. Used for special needs.
Thus, the most popular image formats for the site were briefly reviewed. The most used image format in web development has been found to be jpg .
- 09.07.22IT / Misc Convert office files DOC, DOCX, DOCM, RTF to DOCX, DOCM, DOC, RTF, PDF, HTML, XML, TXT formats without loss and markup changes
- 07.07.22IT / Safety How to protect PHP, JS, HTML, CSS source code - obfuscation, minification, compression and encryption
- 06.07.22IT / Safety Connection not secure, problem with Lets Encrypt - how to fix expired 09/30/2021 DST Root CA X3, remove it manually and install ISRG Root X1. Example on MS Windows 7
- 08.07.21IT / Misc How to make a free translation for a website without an API, translate documents in Google Translate
- 06.07.21IT / Misc How to make a subscription button on a website, a subscriber base and automatic mailing