View Full Version : image link anh text in same line???
aconite
03-23-2007, 03:46 PM
i want to use an image as a form link followed by text in the same line...
the code im using is
<FORM ACTION="customer.php" target="n_left">
<INPUT TYPE="image" SRC="icon.gif" HEIGHT="30" WIDTH="30" BORDER="0" ALT="Submit Form" NAME="CUSTOMER DETAILS" >
</FORM>
CUSTOMER DETAILS
</br>
this gives image in one line and text in the other.how can i display them in the same line??i dont mind using the text a a link instead but the important thing is that it should be in the same line
karinne
03-23-2007, 05:06 PM
Why don't you just do
<form action="customer.php" target="n_left">
<input type="image" src="icon.gif" height="30" width="30" border="0" alt="Submit Form" name="CUSTOMER DETAILS" > CUSTOMER DETAILS</form>
</br>
BTW ... it's not </br>, it's <br />
aconite
03-23-2007, 05:33 PM
it worked thanx.stupid mistake but actually im using html for the first time so...
wht the difference between </br> and <br/> because both of them work??
jlhaslip
03-23-2007, 05:39 PM
it worked thanx.stupid mistake but actually im using html for the first time so...
wht the difference between </br> and <br/> because both of them work??
<br /> is used in xhtml. Note the space. I forget why, but I think the space is needed for *some* Browsers in order to work properly. Might be IE, can't remember.
karinne
03-23-2007, 05:40 PM
<br> is a non-empty element ... meaning that there is no </br> like you have <p>ba bla bla bal</p>
So ... </br> doesn't exists. It's <br />
4. Differences with HTML 4 (http://www.w3.org/TR/xhtml1/#diffs)
and that's assuming you have an XHTML DOCTYPE (http://www.w3.org/QA/2002/04/valid-dtd-list.html) ... if not, you don't need <br /> just <br> is ok.
Arbitrator
03-23-2007, 10:32 PM
it worked thanx.stupid mistake but actually im using html for the first time so...
wht the difference between </br> and <br/> because both of them work??Assuming that you’re using HTML (I assume so since capitalized element names are not allowed in XHTML), then you should use neither of those. Use the plain <br>. Of course, the br element itself should generally be avoided since CSS can do everything that br can.
<br /> is used in xhtml. Note the space. I forget why, but I think the space is needed for *some* Browsers in order to work properly. Might be IE, can't remember.I don’t think that this applies to Internet Explorer, which should render <br/> (no space) fine (aside from the point below). I think that this only applies to ancient browsers that no one checks for any more. At least, I would say that the fact that few people can name what browser(s) the space is required for is an indication of the pointless-ness of that space; I can’t say that I know with certainty which browsers apply anyway. I just know that the ones that I’ve tested in (the modern ones) do not.
<br> is a non-empty element ... meaning that there is no </br> like you have <p>ba bla bla bal</p>I think that you have it backwards. The br element is an empty element.
XHTML DOCTYPE (http://www.w3.org/QA/2002/04/valid-dtd-list.html) ... if not, you don't need <br /> just <br> is ok.Aye, if using HTML (not real XHTML), <br/> should not be used since (in HTML) it’s the same as <br>>. (Modern browsers get this wrong though and don’t render the “>” character; it’s one of the reasons that the idea of HTML‐compatible XHTML is a joke.)
karinne
03-26-2007, 02:22 PM
I think that you have it backwards. The br element is an empty element.
Ooops ... yes ... that's a mistake ;) Unfortunately ... I can't edit my post!
Aye, if using HTML (not real XHTML), <br/> should not be used since (in HTML) it’s the same as <br>>. (Modern browsers get this wrong though and don’t render the “>” character; it’s one of the reasons that the idea of HTML‐compatible XHTML is a joke.)
Isn't that what I said!? If he's got an XHTML doctype then he should have <br /> if not ... <br> it is. I'm confused here!
ronaldb66
03-26-2007, 02:41 PM
Actually, according to the specs, <br></br> would be a perfectly valid notation (both start and end tag combined); the shorthand <br/> probably looks a bit better, though.
VIPStephan
03-26-2007, 04:31 PM
Isn't that what I said!? If he's got an XHTML doctype then he should have <br /> if not ... <br> it is. I'm confused here!
Arbitrator was just confirming your statement (note him saying “Aye” which is an english and scottish word for “yes”). No need to get confused here. :)
karinne
03-26-2007, 07:55 PM
Arbitrator was just confirming your statement (note him saying “Aye” which is an english and scottish word for “yes”). No need to get confused here. :)
:D I was thinking "Aye" as in "Oh dear God ... This is so wrong!" :p
Arbitrator
03-27-2007, 05:47 AM
:D I was thinking "Aye" as in "Oh dear God ... This is so wrong!" :pJust for the record, VIPStephan’s right. I was affirming your statement while adding more detail to it. Perhaps “yeah” would have been a better word choice.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.