| 1. |
List and explain the different attributes of BODY tag. |
|
Answer» Attribute Description HTML Compatibility alink Color of text for SELECTED hyperlinks Depreciated in HTML 4.01, Obsolete in HTML5, use CSS background Image to be used a background hy Depreciated in HTML 4.01, Obsolete in HTM L5, use CSS bgcolor Background color Depreciated in HTML 4.01, Obsolete in HTML5, use CSS link Color of text for unvisited hyperlinks Depreciated in HTML 4.01, Obsolete in HTML5, use CSS onafterprint Function to call user has printed DOCUMENT HTML5 onbeforeprint Function to call when user requests document to be printed HTML5 onbeforeunload Funtion to call when document is to be unloaded HTML5 onblur Function to call when document has lost focus HTML5 onerror Function to call when document fails HTML5 onfocus Function to call when document has focus HTML5 onhaschange Function to call when fragment identifier portion of document's address has changed HTML5 onload Function to call when document has loaded HTML5 onmessage Function to call when the document received a message HTML5 onoffline Function to call when Network communication fails HTML5 ononline Function to call when Network communication is restored HTML5 onpopstate Function to call when user navigated session history HTML5 onredo Function to call when user moved forward in undo history HTML5 onresize Function to call when document was resized HTML5 onstorage Function to call when storage AREA changed HTML5 onundo Function to call when user moved backward in undo history HTML5 onunload Function to call when document is being unloaded HTML5 text Foreground color of text Depreciated in HTML 4.01, Obsolete in HTML5, use CSS vlink Color of text for visited |
|