In which case it would be better to use an HTML IMG tag to display an image As opposed to CSS
Factors may include access, browser support, dynamic content, or any technical limit or applicability principles.
- Use
H3> If you intend to make people and you want to include the image by default & Mdash;
- The image has a meaningful meaning, such as
IMG(withalttext), such as This ensures that the meaning of the image can be sent to all user-agents including screen readers.
Practical Use of IMG
- Use
IMGIf you intend to people and you default to image Use - Use
IMGIf you rely on browser scaling to render an image in proportion to text size. - For the use of
IMG. - > Use
zeroxwithIMGto fill out your entire window.
Note, this is no longer true with CSS3 background size; See # 6 below. - You can use
imginstead ofbackground-image.
How to use CSS background-image
- Use CSS background images if image. & Mdash;
- Use CSS background images while doing the paragraph / header for example. & Mdash;
- If you want to people and you do not want to include the image by default, then use
background image - if you download time If you need to improve, then use
-
background-image. - If you use
background image, you need to have only one part of the picture visible with CSS sprites. - Use the
background imageto fill the background image in order to fill your entire window inBackground size: covercommand.
Comments
Post a Comment