In: Computer Science
What is the difference between HTML attributes and CSS properties? What are depricted elements and how can we address them? Why would a browser not support certain fonts?
1 paragraph for each plz
In HTML 5, few elements follow the width and height attributes and maximum elements do not follow this attribute. Like img, iframe, canvas, and svg kind of elements follow the width and height attributes but div, span, article and section type of elements don’t follow them.
The width and height attributes are affected in img, svg tags, those are weak kind of styling, it can be overridden by CSS. If you have assigned an img tag with the width=”500″ and height=”200″ and load a CSS width and height property for img tag like width: 400px; then that 500 will be dully 400 will effect the image.
The deprecated tags or attributes are those attributes which are replaced by some other attributes. The tag or attributes depreciated when the same attributes is achieved by some other way.Some attributes from HTML4 are no longer allowed in HTML5 at all and they have been removed completely. img and iframe. caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr. table, tr, td, th and body.
I would discourage the use of sIFR - I used it for awhile and
switched to Cufon soon. Cufon is the better option because it makes
do without the need for Flash support, and makes use of the
<canvas>
element in HTML5 instead. p/s: Make
sure you read the terms and conditions of using the font.