Each Internet browser has its own particular qualities. Today we are going to talk about one interesting feature: default value and image display in Internet Explorer.

During creation of HTML page mockups, sometimes there could be a situation when an attribute for an HTML element is specified, but its value isn’t set. For example, when there is a need to check different solutions for one task quickly.

As a result of the specified HTML attribute’s elements, Internet Explorer (any version 10-th or earlier) could bring to unexpected error.

Now we are talking about «height» and «width» attributes for Tag img. If you specified one of those attributes and set it empty value (for example: height=” ), then Internet Explorer will automatically specify a value of ‘1’. Others browsers set some default value in this case.

Tag img

In this case Internet Explorer will set the width value as ‘1px’

To prevent this type of situation, programmers should be careful and check all the values in the code.