What is the difference between these two buttons?  &lt;button&gt;caption&lt;/button&gt; &lt;input type="button" value="caption" /&gt;
2220
When looking at most sites (including SO), most of them use:  &lt;input type="button" /&gt;   instead of:  &lt;button&gt;&lt;/button&gt;    What are the main differences between the two, if any? Are there valid reasons to use one instead of the other? Are there valid reasons to use combine them? Does using &lt;button&gt; come with compatibility issues, seeing it is not very widely used?
32799
I got feedback from security guy and he pointed out that I should use proper escaping of user input in my code. So I've done some research and found escaping functions.  What’s the difference between them? When should I use esc_html() and when esc_attr()? And when should I use these functions with _e() at the end?
9474
I have 3 buttons in a form. One of them is the submit button. How can I make it the default button to be clicked when I press the enter key. Is there a property for this?
21121
Is it possible to nest html forms like this  &lt;form name="mainForm"&gt;   &lt;form name="subForm"&gt;   &lt;/form&gt; &lt;/form&gt;   so that both forms work? My friend is having problems with this, a part of the subForm works, while another part of it does not.
86079
I recall there is a difference between some methods/properties called directly on the  class, and the identically named methods/properties on the  property. (Might have been the RowCount/Count property for which I read this.) The difference is one of them disregards , and the other respects/uses it.  In this particular case I'm wondering about the difference between  and . I can imagine one of them actually removes all rows, and the other one just marks them as deleted.  So my question is, is there a difference between the two Clear methods, and if so what is the difference?  (Oh, this is for .NET 1.1 btw, in case the semantics changed from one version to another.)
78392
Which would be the correct format for this XML data, are they equivalent or are there trade offs between the two?  1.  &lt;sitemap&gt;   &lt;category name="Animals"&gt;     &lt;section title="Dogs"&gt;       &lt;page url="/pics/greatdane.jpg" title="Great Dane"/&gt;     &lt;/section&gt;   &lt;/category&gt; &lt;/sitemap&gt;   2.  &lt;sitemap&gt;   &lt;page&gt;     &lt;category&gt;Animals&lt;/category&gt;     &lt;section&gt;Dogs&lt;/section&gt;     &lt;title&gt;Great Dane&lt;/title&gt;     &lt;url&gt;/pics/greatdane.jpg&lt;/url&gt;       &lt;/page&gt; &lt;/sitemap&gt;   I've implemented the first example with my style sheet and it seems to work fine, but I'm unsure what the correct form should be.
108847
If I type ' (single quote, next to the &lt;enter&gt; button) in the terminal and then press enter it drops to a &gt; prompt.  What exactly is this, what's it used for, and what type of commands can I enter here?    I can &lt;Ctrl-C&gt; out of it but that's all I got.
32505
After reading this question , I want to know the answer of the following.  When should we use \begin{center} instead of \centering?  For example, should we use this one?  {% \centering &lt;other contents&gt; }   or this one?  \begin{center} &lt;other contents&gt; \end{center}
15800
Well I am trying to submit a form by pressing enter but not displaying a submit button. I don't want to get into JavaScript if possible since I want everything to work on all browsers (the only JS way I know is with events).  Right now the form looks like this:  &lt;form name="loginBox" target="#here" method="post"&gt;     &lt;input name="username" type="text" /&gt;&lt;br /&gt;     &lt;input name="password" type="password" /&gt;     &lt;input type="submit" style="height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" /&gt; &lt;/form&gt;   Which works pretty well. The submit button works when the user presses enter, and the button doesn't show in Firefox, IE, Safari, Opera and Chrome. However, I still don't like the solution since it is hard to know whether it will work on all platforms with all browsers.  Can anyone suggest a better method? Or is this about as good as it gets?
56680
I've seen both the blocks of code in use several different times, personally I have always used the first but my question is: is there a functional difference, and if there is what is it?  while (condition is true ) {     // do something }  do {     // do something } while ( condition is true);   I will be applying this to PHP but I assume this is fairly language agnostic.
36777
What is the difference between == and === in JavaScript?  I have also seen != and !== operators.  Are there more such operators?
85136
All right, say I have this:  &lt;select id='list'&gt;     &lt;option value='1'&gt;Option A&lt;/option&gt;     &lt;option value='2'&gt;Option B&lt;/option&gt;     &lt;option value='3'&gt;Option C&lt;/option&gt; &lt;/select&gt;   What would the selector look like if I wanted to get "Option B" when I have the value '2'?  Please note that this is not asking how to get the selected text value, but just any one of them, whether selected or not, depending on the value attribute. I tried:  $("#list[value='2']").text();   But it is not working.
99132
and  both appear to be based around  and its syntax. Is there a difference? What makes one better than the other?
64820
If you know the Index, Value or Text. also if you don't have an ID for a direct reference.  ,  and  are all helpful answers.  Example markup  &lt;div class="selDiv"&gt;   &lt;select class="opts"&gt;     &lt;option selected value="DEFAULT"&gt;Default&lt;/option&gt;     &lt;option value="SEL1"&gt;Selection 1&lt;/option&gt;     &lt;option value="SEL2"&gt;Selection 2&lt;/option&gt;   &lt;/select&gt; &lt;/div&gt;
29396
I'm wondering whether there is a difference between these two expressions. I never know which one to use. Google seems to return the same amount of results for both, so I suppose there might be a difference.        What are the alternatives for this project?     What are the alternatives to this project?
28759
Does someone know how to indent the text within captionof?  I have a long caption that I want to make two paragraphs out of but indent does not seem to work.  \documentclass{article}  \usepackage{caption} \usepackage[demo]{graphicx}  % make demo figure \makeatletter   \AtBeginDocument{%     \def\Ginclude@graphics#1{%       \begingroup\fboxsep=-\fboxrule       \fbox{\rule{\@ifundefined{Gin@@ewidth}{150pt}{\Gin@@ewidth}}{0pt}%         \rule{0pt}{\@ifundefined{Gin@@eheight}{100pt}{\Gin@@eheight}}}\endgroup}} \makeatother  \begin{document}  \noindent \begin{minipage}[c]{\linewidth} \centering \includegraphics{} \captionof{figure}{\textbf{Title} \newline \indent Paragraph 1 is found here with a lot of text lot of text lot of text lot of text lot of text lot of text \newline \indent Paragraph 2 is found here with a lot of text lot of text lot of text lot of text lot of text lot of text} \label{fig:angio} \end{minipage}  \end{document}
5792
I have one text input and one button (see below). How can I use JavaScript to trigger the button's click event when the Enter key is pressed inside the text box?  There is already a different submit button on my current page, so I can't simply make the button a submit button. And, I only want the Enter key to click this specific button if it is pressed from within this one text box, nothing else.  &lt;input type="text" id="txtSearch" /&gt; &lt;input type="button" id="btnSearch" value="Search" onclick="doSomething();" /&gt;