The difference and use of several image formats in HTML

Source: Internet
Author: User

src= "Picture path" > introduce pictures in HTML via

Common image formats are JPEG (JPG), png,gif ...

Pictures in JPEG (JPG) format:

JPEG (JPG) format pictures support More colors, pictures can be compressed, do not support transparent

Generally use JPEG (JPG) format to save more colorful photos

Pictures in GIF format:

Images in GIF format support less color, only support simple transparent (straight-line area transparent), support dynamic diagram

Picture color But one, or a picture in GIF format when moving a graph

Images in PNG format:

PNG supports more colors and supports complex transparency

Can be used to display transparent pictures with complex colors (the most frequently used in practice)

The principles of the use of images:

The effect is inconsistent, the use effect is good. The effect is consistent with the small.

The difference and use of several image formats in HTML

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.