Using Form elements


#1

Hi there,

I’ve got some issues with a piece of code to create a form.

<form>
  <input type="text" name="username" /> <br/>
  <input type="text" name="password" />
</form>

Now, I’d have thought that the two text boxes would have appeared in the webpage perfectly in line but the bottom one seems to have been nudged ever so slightly to the right, which is really irritating.

Is anybody able to help with this one?

Thanks everybody.


#2

Hey,

Mmh, no CSS to go with this?

This is what I’m getting using this exact piece of code:
screenshot

You might want to fix this with CSS, though. And no <br />.

Have you tried another browser?


#3

@ghostlovescore Why no <br />? I use them all the time. What is wrong with them?


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.