• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

HTML Interview Questions Answers

Question - 11 : - Do I have to memorize a bunch of tags?

Answer - 11 : - No. Most programs that help you write HTML code already know most tags, and create them when you press a button. But you should understand what a tag is, and how it works. That way you can correct errors in your page more easily.

Question - 12 : - How do I get form data emailed to me?

Answer - 12 : - The only reliable mechanism for processing form submissions is with a server-side (e.g., CGI) program. To send form data to yourself via email, you should use a server-side program that processes the form submission and sends the data to your email address. Some web service providers make standard form-to-email programs available to their customers. Check with your service provider for details. If you can install CGI programs on your own server, see the answer to the previous question for a list of useful resources. If you can't run CGI programs on your own server, you can use a remotely hosted form-to-email services. Note that the provider of a remotely hosted service will have access to any data submitted via the service. Forms that use action="mailto:..." are unreliable. According to the HTML specifications, form behavior is explicitly undefined for mailto URIs (or anything else other than HTTP URIs). They may work one way with one software configuration, may work other ways in other software configurations, and may fail completely in other software configurations.

Question - 13 : - How do I rename all the files from .htm to .html after copying them from a PC to a UNIX machine?

Answer - 13 : - UNIX's mv (`move') command won't handle wildcard filenames. However, there's a program called htmaddl (for `HTM-add-"L"'), so you can login and type htmaddl. This will rename all .htm files to .html If you haven't got this program on your UNIX machine, you can type it into a file called htmaddl: #! /bin/sh for f in *.htm; do base=`basename $f .htm` mv $f $base.html done After saving it and exiting your editor, make it executable by typing the command chmod ugo+x htmaddl Best of all, move it into your ~/bin directory, or ask your WebMeister to put it in /usr/local/bin so everyone can use it.

Question - 14 : - How can I display an image on my page?

Answer - 14 : - Use an IMG element. The SRC attribute specifies the location of the image. The ALT attribute provides alternate text for those not loading images. For example: <img src="logo.gif" alt="ACME Products">

Question - 15 : - How do I change the title of a framed document?

Answer - 15 : - The title displayed is the title of the frameset document rather than the titles of any of the pages within frames. To change the title displayed, link to a new frameset document using TARGET="_top" (replacing the entire frameset). How do I link an image to something? Just use the image as the link content, like this: <a href=...><img src=... alt=...></a>

Question - 16 : - What is everyone using to write HTML?

Answer - 16 : - Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML.

Question - 17 : - What is the simplest HTML page?

Answer - 17 : - HTML Code: <HTML> <HEAD> <TITLE>This is my page title! </TITLE> </HEAD> <BODY> This is my message to the world! </BODY> </HTML>

Question - 18 : - How do I remove the border around frames?

Answer - 18 : - How do I remove the border around frames? Removing the border around frames involves both not drawing the frame borders and eliminating the space between the frames. The most widely supported way to display borderless frames is <FRAMESET ... BORDER=0 FRAMEBORDER=0 FRAMESPACING=0>. Note that these attributes are proprietary and not part of the HTML 4.01 specifications. (HTML 4.01 does define the FRAMEBORDER attribute for the FRAME element, but not for the FRAMESET element.) Also, removing the border around a frame makes it difficult to resize it, as this border is also used in most GUIs to change the size of the frame.

Question - 19 : - Why doesn't my title show up when I click "check it out"?

Answer - 19 : - You're probably looking at the wrong part of the screen. The Title usually shows up in the Title Bar on the Window, to the left of the minimize/maximize buttons on graphical browsers.

Question - 20 : - How do I eliminate the space around/between my images?

Answer - 20 : - If your images are inside a table, be sure to set the BORDER, CELLSPACING, and CELLPADDING attributes to 0. Extra space between images is often created by whitespace around the <IMG> tag in the markup. It is safe to use newlines inside a tag (between attributes), but not between two tags. For example, replace this: <td ...> <img src=... alt=...> <img src=... alt=...> </td> with this: <td ...><img src=... alt=...><img src=... alt=...></td> According to the latest specifications, the two should be equivalent. However, common browsers do not comply with the specifications in this situation. Finally, extra space between images can appear in documents that trigger the "standards" rendering mode of Gecko-based browsers like Mozilla and Firefox.  

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners