Question

In: Computer Science

1) Discuss the different image formats and the advantage of using them in the webpages, and...

1) Discuss the different image formats and the advantage of using them in the webpages, and discuss how they can use the CSS files to design websites and create their own style rules?

Solutions

Expert Solution

Image Format -

Image file organize and store digital image. Image file generally stores data in compressed, uncompressed or vector format.

Formats are -

  1. Jpg - it follows lossy compression . Which significantly reduces file size . It supports 24 bit color images . And is most generally used. It is used for photography on web because of it's small image size which helps in easy page loading.
  2. PNG - its full name is portable network graphics. It is a free and open source .As it creates larger file as compared to jpg format it's not that good for photography on web. But it's good for the images having some text .
  3. Gif - it means Graphic Interchange format. It supports lossles compression having no loss of data. It's general use is in animation but not in photography because of it's limited color range.
  4. Bitmap - it stands for bitmap image file. It supports lossless compression which allows images to have good quality resulting in high size. It is used when good quality image is needed.
  5. WebP - it is a format which allows both lossless and lossy compression . It reduces the image size resulting in fast page loading on web.

CSS stands for cascading style sheet .it is used for design purpose .HTML adds image to web page while CSS only controls design . background-image property is used to set image on background . background-color sets the background color and background-repeat repeats the first image.

Example -

body {
background-image: url("abc.gif");
background-repeat: repeat;
background-color: #cccccc;
}

Height , background-position , background-size are other tags to design image .


Related Solutions

1. The advantage of FLAIR is most likely that it: a) Cancels fat in the image...
1. The advantage of FLAIR is most likely that it: a) Cancels fat in the image b) Cancels water in the image c) Cancels white matter in the image d) Allows for quick imaging of large volumes e) Uses gradients for spatial localization 2. Typical soft tissue differences (%) in spin density are most likely: a) Less than 1 b) 3 c) 10 d) 30 e) 100
A researcher wants to investigate different formats for taking an exam.
SHOW ANY WORK Computational problems: One-way ANOVA A researcher wants to investigate different formats for taking an exam. She randomly assigns one-third of the class to an open book exam, one-third to no notes, and one-third to one page of notes only. The data appear below.       What is the F statistic reported in appropriate APA style?       What is your decision? (use alpha = .05)       Do you need to conduct a follow-up test?       Do you need to determine the effect size?...
Discuss how CSR and sustainable development initiatives yield competitive advantage for corporations. Discuss them with suitable...
Discuss how CSR and sustainable development initiatives yield competitive advantage for corporations. Discuss them with suitable examples.
Discuss the three basic types of competitive advantage. Can a company achieve all of them?
Discuss the three basic types of competitive advantage. Can a company achieve all of them?
Using Matlab 1. Create a color image of size 200 × 200. The image should have...
Using Matlab 1. Create a color image of size 200 × 200. The image should have a blue background. 2. Create 100 yellow regions within the image that have a variable size. More specifically, their width should be an odd number and vary between 3 and 7 and their height should also be an odd number and vary between 3 and 7. For example, you may get rectangular regions of size 3 × 3, 3 × 5, 5 × 3,...
1) Please give two different data formats and the suggested input types for data visualization. Please...
1) Please give two different data formats and the suggested input types for data visualization. Please explain your reasons in detail regarding the effects, performance, and validation. 2) Please give an example for using a specific Google Chart. You need to explain in detail why that chart is a better choice than the other chart types.
Provide an example of Competitive Advantage and of Comparative Advantage. Explain the difference between them
Provide an example of Competitive Advantage and of Comparative Advantage. Explain the difference between them
1) Discuss the different types of grafts from immunological perspective and how immune system responds to them.
  1)     Discuss the different types of grafts from immunological perspective and how immune system responds to them. 2)     Describe the principles, not therapy details, of reducing graft rejection.
Discuss the traits/behaviors that invasive species often exhibit that gives them competitive advantage over the native...
Discuss the traits/behaviors that invasive species often exhibit that gives them competitive advantage over the native flora and fauna and how diversity is affected. Be sure to include specific examples of both plants and animals and how each has out competed local species.
What are the different types of unemployment? List them, Please discuss in detail.
What are the different types of unemployment? List them, Please discuss in detail.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT