HTML Questions and Answers

  1. What tag is used to position a group of tags simulteniously?:

    Answer

    Place your tags inside <div> and </div> tags. Then you can use align property to place this group in the center, on the right, or on the left.To position group precisely use style property of <div> tag.

  2. Is it always necessary to frame html code by <html> tag at the top and </html> closing tag at the end of html file?:

    Answer

    No. Modern browsers recognize html file by its extension only and let you omit this tag at the beginning and the end of the text. This file for exampledoes not have <html> tags at all.

  3. How HTML browser interpret blank spaces in HTML text?:

    Answer

    HTML interpreter ignores blank spaces and blank lines. Actually it concatanates tags on different and the same lines in one string like this <...><...><...>.Therefore you ought to use &nbsp; combination to indicate a single blank space between tags.

  4. Is this true: The greater the number in the sequence <h1> , <h2> ... <h6> the smaller would be the height of the text a browser?:

    Answer

    That's true. This is a relation of reverse order. The bigger size you want for a text in a browser the smaller number you should use.

  5. What tags are used by global search engines like AltaVista.com to index your page?:

    Answer

    AltaVista's crawler make sense of <meta> tag. When some word or phrase is searched by search engine the result would be positive to find it on your pageif you listed this word or phrase as a keyword in content list of <meta> tag. <title> tag information would indicate your page in search results. You should manuallysend your URL to search engine to activate its indexing or use some specific service.

  6. Are there some writing conventions for HTML text?:

    Answer

    There are some recommendations here. First, always use lower case. You save hand movements not pressing Shift keys. The next advantage is convenience. Having simpliest computer you can alwaysaccess your pages on the Net and edit it by simple text editor like NotePade. NotePade doesn't requere from you to use uppercase at all, use lower. Second, structure your program as a whole. Place script blocks and calls for include files (ASP programming) inside <head> tags, place there variables definitions. <head> part of HTML text is similar to C/C++ header file.Third, to make HTML file more readable place tag's multiple properties one under each other on the following lines. It would not slow the traffic because HTML interpreter doesn't mention blank spaces.

  7. What is HTML interpreter behavior when it read erronoius tag?:

    Answer

    HTML interpreter ignores tags which it does't recognize. For example if you place <error> tag in your HTML, your browser would not mention it because there is no such tag in HTML standard.

  8. Answer

    No. HTML text is not case sensetive like VBScript. If are using JavaScript inside <script> ... </div> blocks it becomes case sensetive, but only for JavaScript text, because JavaScript itself is case sensetive.

  9. Why to use special combinations like &lt; for <, &reg; for ® , why not use these symbols directly?:

    Answer

    Some symbol like ® you can not find on keybord and HTML standard offer to use special combinations, < browser interpret as a beginning of HTML tag and would not show it as long as > is present (if no space inside).

  10. Is it make sense to use both JavaScript and VBScript inside scripting blocks?:

    Answer

    Yes it is. JavaScript is browser neutral language, you can use it for Microsoft, Netscape browsers, WebTV and many others without modifing JavaScript text.JavaScript is client-side scripting language. VBScript offers much more opportunities as server-side scripting language for Microsoft servers. This is plarform-dependantlanguage. Although you can use JavaScript as for server-side scripting, you can not work directly with files and folders on server as when working with VBScript. You can use VBScript for many web server administration tasks.