Interview Questions.

Top 10 Html 4 Interview Questions


Top 10 Html 4 Interview Questions

Q1. What Are The Authoring Documents With Html 4.Zero?

Following standard ideas when running with HTML 4.Zero.

Separate structure and presentation

HTML has its roots in SGML which has continually been a language for the specification of structural markup. As HTML matures, an increasing number of of its presentational factors and attributes are being replaced by means of different mechanisms, mainly fashion sheets. Experience has proven that setting apart the shape of a record from its presentational aspects reduces the cost of serving a extensive range of platforms, media, and so on., and enables record revisions.

Consider familiar accessibility to the Web

To make the Web more available to anybody, substantially those with disabilities, authors should remember how their documents can be rendered on a diffusion of structures: speech-based browsers, braille-readers, etc. We do no longer suggest that authors limit their creativity, most effective that they remember trade renderings in their layout. HTML gives some of mechanisms to this give up (e.G., the alt attribute, the accesskey attribute, and so forth.)

Furthermore, authors should remember the fact that their documents may be attaining a far-off target audience with distinctive laptop configurations. In order for files to be interpreted correctly, authors need to consist of in their files statistics approximately the herbal language and route of the text, how the file is encoded, and different problems related to internationalization.

Help consumer agents with incremental rendering

By cautiously designing their tables and making use of latest desk functions in HTML four.0, authors can help person agents render files extra fast. Authors can discover ways to layout tables for incremental rendering (see the TABLE element). Implementors should seek advice from the notes on tables [p.317] in the appendix for records on incremental algorithms.

Q2. Which Code Can Be Used To Help Prevent A Page From Being Cached In The Users Browser?

<meta http-equiv="PRAGMA" value="NO-CACHE">

Q3. You Have Been Asked To Add Background Music To A Web Page. Which Tags Would Achieve The Desired Result?

<embed src="media/background.Mpeg" loop="infinite" autostart="true">

Q4. How Do I Remove The Border Around Frames?

Removing the border round frames includes both now not drawing the frame borders and doing away with the distance between the frames. The most extensively supported manner to show without borderlines frames is <FRAMESET ... BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>.

Note that those attributes are proprietary and now not a part of the HTML 4.01 specifications. (HTML 4.01 does define the FRAMEBORDER characteristic for the FRAME detail, however not for the FRAMESET detail.) Also, removing the border around a body makes it tough to resize it, as this border is also used in maximum GUIs to trade the size of the body.

Q5. How Do I Create Frames? What Is A Frameset?

Frames allow an writer to divide a browser window into a couple of (rectangular) areas. Multiple documents can be displayed in a unmarried window, every within its personal frame. Graphical browsers allow those frames to be scrolled independently of each different, and hyperlinks can update the file displayed in a single frame with out affecting the others.

You cannot just "upload frames" to an existing document. Rather, you have to create a frameset document that defines a selected combination of frames, and then show your content documents internal the ones frames. The frameset report ought to also include alternative non-framed content material in a NOFRAMES detail. The HTML four frames model has extensive design flaws that reason usability problems for net customers.  Frames must be used only with notable care.

Q6. How Is The Page Structure Of Html 5 Different From Html four Or Previous Html?

A standard web page has headers, footers, navigation, principal place and aspect bars. Now if we want to symbolize the same in HTML 4 with proper names to the HTML section we would probable use a DIV tag.

But in HTML five they have got made it more clear with the aid of developing element names for those sections which makes your HTML extra readable.

Below are greater details of the HTML five factors which form the page structure.

•<header>: Represents header statistics of HTML.

•<footer>: Footer section of the web page.

•<nav>: Navigation factors inside the page.

•<article>: Self-contained content.

•<section>: Used inside article to outline sections or group content material in to sections.

•<aside>: Represent facet bar contents of a web page.

Q7. What Is Html 4 Header And Footer?

<div id="header"> 

<h1>Monday Times</h1> 



<div id="footer"> 

<p>&reproduction; JavaTpoint. All rights reserved.</p> 


Q8. You Have A Web Page From Which You Would Like To Be Able To Send Data Back And Forth To The Server Through A Form Without Reloading The Page. Which Attribute Should You Add To The Form Element To Acco

This is not viable using best HTML.

Q9. How To Read The Html Dtd?

Each detail and characteristic announcement in this specification is observed with the aid of its file type definition fragment. We have selected to encompass the DTD fragments in the specification in preference to are searching for a greater approachable, but longer and much less particular me of describing an detail’s residences. The following tutorial ought to allow readers surprising with SGML to study the DTD and recognize the technical information of the HTML specification.

•DTD Comments

•Parameter entity definitions

•Element declarations

•Attribute declarations

Q10. What Is Sgml?

SGML is a machine for defining markup languages. Authors mark up their documents by means of representing structural, presentational, and semantic records alongside content. HTML is one example of a markup language.