SnakesBite101 Posted June 29, 2012 Share Posted June 29, 2012 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 More sharing options...
Ingolme Posted June 29, 2012 Share Posted June 29, 2012 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. 1 Link to comment Share on other sites More sharing options...
SnakesBite101 Posted June 29, 2012 Author Share Posted June 29, 2012 thanks ingolme. thats very clear now Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now