Searching for "positioning"

Q:

Explain three important components of Dynamic HTML authoring - Positioning, Style modifications and Event handling

Answer

- Positioning: Is some what where we need the object to be placed in the graphical view i:e on screen. If we talk in DHTML sense then we have two types of positioning: Relative and Absolute.


Relative Positioning: Relative positioning is the same as the current HTML3 layout and is best reserved for situations where you want to be sure that the content will revert to this default inside a document that also uses absolute positioning.


Absolute Positioning: In DHTML absolute positioning means that the object will remain at the same position regardless of the condition of other elements and the size of the browser. In simple languages if an object/image is absolutely positioned (STYLE="position: absolute;"), with an offset of 150 pixels to the right and 250 pixels down from the left-hand corner of the browser screen then it will avail this position what ever the circumstances may be.


- Style Modifications: Style modification indicates the changes in the presentation or the view part that are being made in web page. This part comes under Cascading Style Sheet where the user style his web page by using the attributes and the tags that are pre-defined in CSS.


- Event Handling: As explained earlier Events is the beating heart of any JavaScript application. For handling event in DHTML we attach event handler to HTML elements. The event handler waits until a certain event, for instance a click on a link, takes place. When it happens it handles the event by executing some JavaScript code that has been defined by us. After it has executed the code the event handler comes to its initial state and waits for the user to fire any event. Hence to handle events in DHTML we need to register an event handler.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

Amit started walking positioning his back towards the sun. After some time, he turned left, then turned right and towards the left again. In which direction is he going now?

A) North or South B) North or West
C) East or West D) South or West
 
Answer & Explanation Answer: A) North or South

Explanation:

If he starts walking the morning then finally he will face towards South and if he starts in the evening then finally he will face towards North.

Report Error

View Answer Report Error Discuss

Filed Under: Direction Sense Test