300+ [LATEST] Html Interview Questions and Answers

1. Do Any Wysiwyg Editors Support The Creation Of Style Sheets? Any Text-based Html Editors?

As support for CSS in browsers has matured in the last year, both WYSIWYG and Text-based HTML editors have appeared that allow the creation or the assistance of creating Cascading Style Sheet syntax. There are now at least two dozen editors supporting CSS syntax in some form. The W3C maintains an up-to-date list of these WYSIWYG and text-based editors.

2. How Do I Place Text Over An Image?

To place text or image over an image you use the position property. The below example is supported by IE 4.@All you have to do is adapt the units to your need.

3. What Are The Differences Between Cell Spacing And Cell Padding?

Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents. Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing. It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.

4. Can Style Sheets And Html Stylistic Elements Be Used In The Same Document?

Yes. Style Sheets will be ignored in browsers without CSS-support and HTML stylistic elements used.

5. How To Place A Background For A Single Table Cell?

You can put a background for a single table cell in two ways namely: Either by using HTML Using CSS

  300+ TOP HTML & HTML 5 Interview Questions and Answers

6. Must I Quote Property Values?

Generally no. However, values containing white spaces, e.g. font-family names should be quoted as white spaces surrounding the font name are ignored and whitespaces inside the font name are converted to a single space, thus font names made up of more than one word (e.g.) ‘Times New Roman’ are interpreted as three different names: Times, New and Roman.

7. Which Set Of Definitions, Html Attributes Or Css Properties, Take Precedence?

CSS properties take precedence over HTML attributes. If both are specified, HTML attributes will be displayed in browsers without CSS support but won’t have any effect in browsers with CSS support.

8. How Can I Show Html Examples Without Them Being Interpreted As Part Of My Document?

Within the HTML example, first replace the “&” character with “&” everywhere it occurs. Then replace the “<” character with “<” and the “>” character with “>” in the same way.

Note that it may be appropriate to use the CODE and/or PRE elements when displaying HTML examples.

9. How To Trferring User To New Web Page Automatically?

You will need to use the below meta tag.

Placing the above tag in yourwill load yousite.com in 2 seconds.
Changing the 2 value on CONTENT=”2″ to another value will increase or decrease the delay until loading the new page.

Scroll to Top