<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2827701158118335721</id><updated>2011-11-27T16:48:46.297-08:00</updated><category term='HTML URL'/><category term='HTML Basic Questions'/><category term='HTML Tags'/><title type='text'>HTML Interview Question and Answer</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-7337800833201110845</id><published>2007-12-26T08:12:00.001-08:00</published><updated>2007-12-26T08:12:44.932-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Basic Questions'/><title type='text'>Why is there extra space before or after my table?</title><content type='html'>This is often caused by invalid HTML syntax. Specifically, it is often caused by loose content within the table (i.e., content that is not inside a TD or TH element). There is no standard way to handle loose content within a table. Some browsers display all loose content before or after the table. When the loose content contains only multiple line breaks or empty paragraphs, then these browsers will display all this empty space before or after the table itself. The solution is to fix the HTML syntax errors. All content within a table must be within a TD or TH element.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-7337800833201110845?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/7337800833201110845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=7337800833201110845' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/7337800833201110845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/7337800833201110845'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/why-is-there-extra-space-before-or.html' title='Why is there extra space before or after my table?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-1137105013883491787</id><published>2007-12-26T08:11:00.002-08:00</published><updated>2007-12-26T08:14:34.295-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Basic Questions'/><title type='text'>Why doesn't use the full browser width?</title><content type='html'>Graphical browsers leave a narrow margin between the edge of the display area and the content. Also note that Navigator always leaves room for a scrollbar on the right, but draws the scrollbar only when the document is long enough to require scrolling. If the document does not require scrolling, then this leaves a right "margin" that cannot be removed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-1137105013883491787?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/1137105013883491787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=1137105013883491787' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/1137105013883491787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/1137105013883491787'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/why-doesnt-use-full-browser-width.html' title='Why doesn&apos;t use the full browser width?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-2094683683300097</id><published>2007-12-26T08:11:00.001-08:00</published><updated>2007-12-26T08:11:55.046-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML URL'/><title type='text'>Can I use percentage values for ?</title><content type='html'>The HTML 3.2 and HTML 4.0 specifications allow only integer values (representing a number of pixels) for the WIDTH attribute of the TD element. However, the HTML 4.0 DTD allows percentage (and other non-integer) values, so an HTML validator will not complain about &lt;td width="xx%"&gt;.&lt;br /&gt;It should be noted that Netscape and Microsoft's browsers interpret percentage values for &lt;td width="..."&gt;differently. However, their interpretations (and those of other table-aware browsers) happen to match when combined with &lt;table width="100%"&gt;. In such situations, percentage values can be used relatively safely, even though they are prohibited by the public specifications.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-2094683683300097?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/2094683683300097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=2094683683300097' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/2094683683300097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/2094683683300097'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/can-i-use-percentage-values-for.html' title='Can I use percentage values for &lt;TD WIDTH=...&gt;?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-240256165253596510</id><published>2007-12-26T08:10:00.002-08:00</published><updated>2007-12-26T08:11:28.167-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML URL'/><title type='text'>How can I avoid using the whole URL?</title><content type='html'>The URL structure defines a hierarchy (or relationship) that is similar to the hierarchy of subdirectories (or folders) in the filesystems used by most computer operating systems. The segments of a URL are separated by slash characters ("/"). When navigating the URL hierarchy, the final segment of the URL (i.e., everything after the final slash) is similar to a file in a filesystem. The other segments of the URL are similar to the subdirectories and folders in a filesystem. &lt;br /&gt;A relative URL omits some of the information needed to locate the referenced document. The omitted information is assumed to be the same as for the base document that contains the relative URL. This reduces the length of the URLs needed to refer to related documents, and allows document trees to be accessed via multiple access schemes (e.g., "file", "http", and "ftp") or to be moved without changing any of the embedded URLs in those documents. &lt;br /&gt;Before the browser can use a relative URL, it must resolve the relative URL to produce an absolute URL. If the relative URL begins with a double slash (e.g., //www.yoursite.com/faq/html/), then it will inherit only the base URL's scheme. If the relative URL begins with a single slash (e.g., /faq/html/), then it will inherit the base URL's scheme and network location. &lt;br /&gt;If the relative URL does not begin with a slash (e.g., all.html , ./all.html or ../html/), then it has a relative path and is resolved as follows. &lt;br /&gt;&lt;br /&gt;1. The browser strips everything after the last slash in the base document's URL and appends the relative URL to the result. &lt;br /&gt;2. Each "." segment is deleted (e.g., ./all.html is the same as all.html, and ./ refers to the current "directory" level in the URL hierarchy). &lt;br /&gt;3. Each ".." segment moves up one level in the URL hierarchy; the ".." segment is removed, along with the segment that precedes it (e.g., foo/../all.html is the same as all.html, and ../ refers to the parent "directory" level in the URL hierarchy). &lt;br /&gt;&lt;br /&gt;Some examples may help make this clear. If the base document is &lt;URL:http://www.yoursite.com/faq/html/basics.html&gt;, then &lt;br /&gt;&lt;br /&gt;all.html and ./all.html &lt;br /&gt;refer to &lt;URL:http://www.yoursite.com/faq/html/all.html&gt; &lt;br /&gt;./ &lt;br /&gt;refers to &lt;URL:http://www.yoursite.com/faq/html/&gt; &lt;br /&gt;../ &lt;br /&gt;refers to &lt;URL:http://www.yoursite.com/faq/&gt; &lt;br /&gt;../cgifaq.html &lt;br /&gt;refers to &lt;URL:http://www.yoursite.com/faq/cgifaq.html&gt; &lt;br /&gt;../../reference/ &lt;br /&gt;refers to &lt;URL:http://www.yoursite.com/reference/&gt; &lt;br /&gt;&lt;br /&gt;Please note that the browser resolves relative URLs, not the server. The server sees only the resulting absolute URL. Also, relative URLs navigate the URL hierarchy. The relationship (if any) between the URL hierarchy and the server's filesystem hierarchy is irrelevant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-240256165253596510?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/240256165253596510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=240256165253596510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/240256165253596510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/240256165253596510'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-can-i-avoid-using-whole-url.html' title='How can I avoid using the whole URL?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-8258917169333991610</id><published>2007-12-26T08:10:00.001-08:00</published><updated>2007-12-26T08:10:37.402-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>How can I use forms for pull-down navigation menus?</title><content type='html'>There is no way to do this in HTML only; something else must process the form. JavaScript processing will work only for readers with JavaScript-enabled browsers. CGI and other server-side processing is reliable for human readers, but search engines have problems following any form-based navigation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-8258917169333991610?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/8258917169333991610/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=8258917169333991610' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8258917169333991610'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8258917169333991610'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-can-i-use-forms-for-pull-down.html' title='How can I use forms for pull-down navigation menus?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-8343047392500167788</id><published>2007-12-26T08:09:00.002-08:00</published><updated>2007-12-26T08:10:07.917-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>Can I have two or more actions in the same form?</title><content type='html'>No. A form must have exactly one action. However, the server-side (e.g., CGI) program that processes your form submissions can perform any number of tasks (e.g., updating a database, sending email, logging a transaction) in response to a single form submission.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-8343047392500167788?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/8343047392500167788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=8343047392500167788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8343047392500167788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8343047392500167788'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/can-i-have-two-or-more-actions-in-same.html' title='Can I have two or more actions in the same form?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-1603625280649691141</id><published>2007-12-26T08:09:00.001-08:00</published><updated>2007-12-26T08:09:40.630-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>How can I use tables to structure forms?</title><content type='html'>Small forms are sometimes placed within a TD element within a table. This can be a useful for positioning a form relative to other content, but it doesn't help position the form-related elements relative to each other. To position form-related elements relative to each other, the entire table must be within the form. You cannot start a form in one TH or TD element and end in another. You cannot place the form within the table without placing it inside a TH or TD element. You can put the table inside the form, and then use the table to position the INPUT, TEXTAREA, SELECT, and other form-related elements, as shown in the following example. &lt;form action="[URL]"&gt;&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt; scope="row"&gt; &lt;label for="account"&gt;Account:&lt;/label&gt; &lt;/th&gt;&lt;td&gt;&lt;input id="account" name="account"&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt; scope="row"&gt; &lt;label for="password"&gt;Password: &lt;/th&gt;&lt;td&gt;&lt;input id="password" type="password" value="" name="password"&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="submit" value="Submit Query" name="Log On"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/form&gt;&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;&lt;label for="password"&gt;&lt;/label&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-1603625280649691141?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/1603625280649691141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=1603625280649691141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/1603625280649691141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/1603625280649691141'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-can-i-use-tables-to-structure-forms_26.html' title='How can I use tables to structure forms?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-547832630523713844</id><published>2007-12-26T08:08:00.000-08:00</published><updated>2007-12-26T08:09:09.717-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>How can I eliminate the extra space after a form tag?</title><content type='html'>HTML has no mechanism to control this. However, with CSS, you can set the margin-bottom of the form to 0. For example: &lt;form style="MARGIN-BOTTOM: 0px" action="..."&gt;&lt;p&gt;&lt;strong&gt;You can also use a CSS style sheet to affect all the forms on a page:&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;form &lt;/p&gt;&lt;p&gt;{ &lt;/p&gt;&lt;p&gt;margin-bottom: 0 ;&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/form&gt;&lt;form style="MARGIN-BOTTOM: 0px" action="..."&gt;&lt;/form&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-547832630523713844?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/547832630523713844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=547832630523713844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/547832630523713844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/547832630523713844'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-can-i-eliminate-extra-space-after.html' title='How can I eliminate the extra space after a form tag?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-3708069687413405388</id><published>2007-12-26T08:07:00.000-08:00</published><updated>2007-12-26T08:08:19.104-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>How do I set the focus to the first form field?</title><content type='html'>&lt;strong&gt;You cannot do this with HTML. However, you can include a script after the form that sets the focus to the appropriate field, like this:&lt;/strong&gt; &lt;form id="myform" name="myform" action="..."&gt;&lt;input id="myinput" name="myinput"&gt; &lt;/form&gt;&lt;script type="text/javascript"&gt; document.myform.myinput.focus(); &lt;/script&gt;&lt;br /&gt;A similar approach uses to set the focus, but some browsers seem to process the ONLOAD event before the entire document (i.e., the part with the form) has been loaded.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-3708069687413405388?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/3708069687413405388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=3708069687413405388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/3708069687413405388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/3708069687413405388'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-do-i-set-focus-to-first-form-field.html' title='How do I set the focus to the first form field?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-7713292220501165416</id><published>2007-12-26T08:06:00.001-08:00</published><updated>2007-12-26T08:06:31.433-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>How do I make a form so it can be submitted by hitting ENTER?</title><content type='html'>The short answer is that the form should just have one &lt;input type="TEXT"&gt; and no TEXTAREA, though it can have other form elements like checkboxes and radio buttons.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-7713292220501165416?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/7713292220501165416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=7713292220501165416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/7713292220501165416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/7713292220501165416'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-do-i-make-form-so-it-can-be.html' title='How do I make a form so it can be submitted by hitting ENTER?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-6076820540857540593</id><published>2007-12-26T08:05:00.002-08:00</published><updated>2007-12-26T08:06:14.875-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Tags'/><title type='text'>Do I have to memorize a bunch of tags?</title><content type='html'>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.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-6076820540857540593?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/6076820540857540593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=6076820540857540593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/6076820540857540593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/6076820540857540593'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/do-i-have-to-memorize-bunch-of-tags.html' title='Do I have to memorize a bunch of tags?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-3626797020916940755</id><published>2007-12-26T08:05:00.001-08:00</published><updated>2007-12-26T08:05:38.329-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Basic Questions'/><title type='text'>How can I check for errors?</title><content type='html'>HTML validators check HTML documents against a formal definition of HTML syntax and then output a list of errors. Validation is important to give the best chance of correctness on unknown browsers (both existing browsers that you haven't seen and future browsers that haven't been written yet). HTML checkers (linters) are also useful. These programs check documents for specific problems, including some caused by invalid markup and others caused by common browser bugs. Checkers may pass some invalid documents, and they may fail some valid ones. All validators are functionally equivalent; while their reporting styles may vary, they will find the same errors given identical input. Different checkers are programmed to look for different problems, so their reports will vary significantly from each other. Also, some programs that are called validators (e.g. the "CSE HTML Validator") are really linters/checkers. They are still useful, but they should not be confused with real HTML validators. When checking a site for errors for the first time, it is often useful to identify common problems that occur repeatedly in your markup. Fix these problems everywhere they occur (with an automated process if possible), and then go back to identify and fix the remaining problems. Link checkers follow all the links on a site and report which ones are no longer functioning. CSS checkers report problems with CSS style sheets.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-3626797020916940755?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/3626797020916940755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=3626797020916940755' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/3626797020916940755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/3626797020916940755'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-can-i-check-for-errors.html' title='How can I check for errors?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-7365768915284043910</id><published>2007-12-26T08:03:00.002-08:00</published><updated>2007-12-26T08:04:52.251-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Basic Questions'/><title type='text'>How do I use forms?</title><content type='html'>The basic syntax for a form is: &lt;form action="[URL]"&gt;...&lt;/form&gt;When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. This URL should refer to a server-side (e.g., CGI) program that will process the form data. The form itself should contain * at least one submit button (i.e., an &lt;input type="submit" value="Submit Query"&gt; element), * form data elements (e.g., &lt;input&gt;, &lt;textarea&gt;, and &lt;select&gt;) as needed, and * additional markup (e.g., identifying data elements, presenting instructions) as needed.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/textarea&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-7365768915284043910?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/7365768915284043910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=7365768915284043910' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/7365768915284043910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/7365768915284043910'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-do-i-use-forms.html' title='How do I use forms?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-9116354896599695222</id><published>2007-12-26T08:03:00.001-08:00</published><updated>2007-12-26T08:03:53.915-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Basic Questions'/><title type='text'>How can I use tables to structure forms?</title><content type='html'>Small forms are sometimes placed within a TD element within a table. This can be a useful for positioning a form relative to other content, but it doesn't help position the form-related elements relative to each other. To position form-related elements relative to each other, the entire table must be within the form. You cannot start a form in one TH or TD element and end in another. You cannot place the form within the table without placing it inside a TH or TD element. You can put the table inside the form, and then use the table to position the INPUT, TEXTAREA, SELECT, and other form-related elements, as shown in the following example.&lt;br /&gt;&lt;form action="[URL]"&gt;&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;Account:&lt;/th&gt;&lt;td&gt;&lt;input name="account"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;Password:&lt;/th&gt;&lt;td&gt;&lt;input type="password" value="" name="password"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="submit" value="Submit Query" name="Log On"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/form&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How do I center a table?&lt;br /&gt;In your HTML, use&lt;br /&gt;&lt;div class="center"&gt;&lt;table&gt;... &lt;tbody&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;In your CSS, use div&lt;br /&gt;.center&lt;br /&gt; { text-align: center;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;div.center table&lt;br /&gt; {&lt;br /&gt; margin-left: auto; margin-right: auto; text-align: left;&lt;br /&gt; }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-9116354896599695222?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/9116354896599695222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=9116354896599695222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/9116354896599695222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/9116354896599695222'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-can-i-use-tables-to-structure-forms.html' title='How can I use tables to structure forms?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-8836492575694496548</id><published>2007-12-26T08:00:00.000-08:00</published><updated>2007-12-26T08:02:58.058-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML Basic Questions'/><title type='text'>How do I align a table to the right (or left)?</title><content type='html'>You can use &lt;table align="right"&gt; to float a table to the right. (Use ALIGN="left" to float it to the left.) Any content that follows the closing &lt;/table&gt; tag will flow around the table. Use &lt;br clear="right"&gt; or &lt;br clear="all"&gt; to mark the end of the text that is to flow around the table, as shown in this example: The table in this example will float to the right. &lt;table align="right"&gt;...&lt;/table&gt; This text will wrap to fill the available space to the left of (and if the text is long enough, below) the table. &lt;br clear="right"&gt; This text will appear below the table, even if there is additional room to its left.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-8836492575694496548?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/8836492575694496548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=8836492575694496548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8836492575694496548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8836492575694496548'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/12/how-do-i-align-table-to-right-or-left.html' title='How do I align a table to the right (or left)?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-8588611627499847016</id><published>2007-08-13T09:43:00.000-07:00</published><updated>2007-08-13T09:44:05.234-07:00</updated><title type='text'>Can I nest tables within tables?</title><content type='html'>Yes, a table can be embedded inside a cell in another table. Here's a simple example: &lt;table&gt; &lt;tr&gt; &lt;td&gt;this is the first cell of the outer table&lt;/td&gt; &lt;td&gt;this is the second cell of the outer table, with the inner table embedded in it &lt;table&gt; &lt;tr&gt; &lt;td&gt;this is the first cell of the inner table&lt;/td&gt; &lt;td&gt;this is the second cell of the inner table&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; The main caveat about nested tables is that older versions of Netscape Navigator have problems with them if you don't explicitly close your TR, TD, and TH elements. To avoid problems, include every &lt;/tr&gt;, &lt;/td&gt;, and &lt;/th&gt; tag, even though the HTML specifications don't require them. Also, older versions of Netscape Navigator have problems with tables that are nested extremely deeply (e.g., tables nested ten deep). To avoid problems, avoid nesting tables more than a few deep. You may be able to use the ROWSPAN and COLSPAN attributes to minimize table nesting. Finally, be especially sure to validate your markup whenever you use nested tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-8588611627499847016?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/8588611627499847016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=8588611627499847016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8588611627499847016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/8588611627499847016'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/08/can-i-nest-tables-within-tables.html' title='Can I nest tables within tables?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-9171167973217441435</id><published>2007-08-13T09:39:00.000-07:00</published><updated>2007-08-13T09:40:46.064-07:00</updated><title type='text'>What is a DOCTYPE? Which one do I use?</title><content type='html'>According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses. Originally, the DOCTYPE declaration was used only by SGML-based tools like HTML validators, which needed to determine which version of HTML a document used (or claimed to use). Today, many browsers use the document's DOCTYPE declaration to determine whether to use a stricter, more standards-oriented layout mode, or to use a "quirks" layout mode that attempts to emulate older, buggy browsers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-9171167973217441435?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/9171167973217441435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=9171167973217441435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/9171167973217441435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/9171167973217441435'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/08/what-is-doctype-which-one-do-i-use.html' title='What is a DOCTYPE? Which one do I use?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-3987946161685604893</id><published>2007-08-13T09:34:00.000-07:00</published><updated>2007-08-13T09:36:29.744-07:00</updated><title type='text'>How do I create frames? What is a frameset?</title><content type='html'>Frames allow an author to divide a browser window into multiple (rectangular) regions. Multiple documents can be displayed in a single window, each within its own frame. Graphical browsers allow these frames to be scrolled independently of each other, and links can update the document displayed in one frame without affecting the others. You can't just "add frames" to an existing document. Rather, you must create a frameset document that defines a particular combination of frames, and then display your content documents inside those frames. The frameset document should also include alternative non-framed content in a NOFRAMES element. The HTML 4 frames model has significant design flaws that cause usability problems for web users. Frames should be used only with great care.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-3987946161685604893?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/3987946161685604893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=3987946161685604893' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/3987946161685604893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/3987946161685604893'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/08/how-do-i-create-frames-what-is-frameset.html' title='How do I create frames? What is a frameset?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2827701158118335721.post-5224920109250559276</id><published>2007-08-13T09:30:00.001-07:00</published><updated>2007-08-13T09:32:41.162-07:00</updated><title type='text'>What is HTML ?</title><content type='html'>HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet.&lt;br /&gt;HTML ( H yper T ext M arkup L anguage) is the language used to write Web pages. You are looking at a Web page right now.&lt;br /&gt;Answer1: HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet. Answer2: HTML ( H yper T ext M arkup L anguage) is the language used to write Web pages. You are looking at a Web page right now. You can view HTML pages in two ways: * One view is their appearance on a Web browser, just like this page -- colors, different text sizes, graphics. * The other view is called "HTML Code" -- this is the code that tells the browser what to do.&lt;br /&gt;More info visit at: &lt;a href="http://www.interviewghost.com/"&gt;http://www.interviewghost.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2827701158118335721-5224920109250559276?l=html-interview-question-answer.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://html-interview-question-answer.blogspot.com/feeds/5224920109250559276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2827701158118335721&amp;postID=5224920109250559276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/5224920109250559276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2827701158118335721/posts/default/5224920109250559276'/><link rel='alternate' type='text/html' href='http://html-interview-question-answer.blogspot.com/2007/08/what-is-html.html' title='What is HTML ?'/><author><name>Jon Deny</name><uri>http://www.blogger.com/profile/00004295198552685651</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
