Jump to content

Questions on Forms


SnakesBite101

Recommended Posts

hey guys can someone please tell me what this attribute means or does? <textarea wrap="virtual"> also what does the length property actually do in an input field? if i have length="2" i can still type more than 2 characters. and i believe the rows="8" is actually what defines the actual length of an input field?

Link to comment
Share on other sites

There is no wrap attribute in HTML 4.01. It is introduced in HTML 5 and can only have valued "hard" or "soft". If I'm correct, "hard" will force a line break when the amount of characters reaches the size of the cols attribute. There is no length attribute. There is a maxlength attribute. when maxlength is set, the content of the textarea will never exceed that length in characters. The rows and cols attributes only define the visible size of the textarea on the page and do not limit the amount of characters that can be typed.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...