HTML Interview Question

Well, I got this question in a test survey. Give two reasons why the page may take longer than necessary with this image.

< IMG src="somethin.gif" width=10 height=10 border=0 >

Well, I came up with 3 instead of 2 causes of the Xhtml validation problem, image resizing and unnecessary border = 0. So what's wrong here? .

+5
source share
5 answers

Verification problems do not increase load time (and, apart from some extra space, this is the only thing that makes it valid. HTML 4.01 Transitional is the missing alt attribute).

Something that can increase boot time is the following:

  • The image may be larger than 10x10 and should be reduced
  • CSS ( )

, , , border = 0 "", ( - CSS).

+8

. 2 ;)

+3

something.gif .

something.gif :

+1

:

<img src="data:image/gif;base64, {insert base64 image here} >

. , 10 10, base64 , ..

0

.

-1

All Articles