Home > Harshada Hole

Difference between Block and inline level elements

Nearly all HTML elements are either block or inline elements. The characteristics of block elements include:Always begin on a new lineHeight, line-height and top and bottom margins can be manipulatedWidth defaults to 100% of their containing element, unless a width is specifiedIgnores the vertical-align propertyInline elements on the other hand have the opposite characteristics:Begin on the same lineHeight,

This Article is TAGGED in , , . Read more

Problem with ampersand(“&”) in anchor tags.

There is a common error occurs when including a URL which contains an ampersand ("&"):<!-- This is invalid! --> <a href="foo.cgi?chapter=1&section=2&copy=3&lang=en">...</a>This example generates an error for "unknown entity section" because the "&" is assumed to begin an entity reference. Browsers often recover safely from this kind of error, but real problems do occur in some

This Article is TAGGED in , . Read more