Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:16:13+00:00 2026-06-05T22:16:13+00:00

Why would <textarea col=5 row=5 /> break my layout in my modern browser but

  • 0

Why would <textarea col="5" row="5" /> break my layout in my modern browser but not if I explicitly use a closing tag such as <textarea col="5" row="5" /></textarea>?
This has been bothering me. Is it part of the standard somehow?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:16:14+00:00Added an answer on June 5, 2026 at 10:16 pm

    Yes, it is part of the standard:

    http://www.w3.org/TR/html401/interact/forms.html#h-17.7

    17.7 The TEXTAREA element
    
    <!ELEMENT TEXTAREA - - (#PCDATA)       -- multi-line text field -->
    <!ATTLIST TEXTAREA
      %attrs;                              -- %coreattrs, %i18n, %events --
      name        CDATA          #IMPLIED
      rows        NUMBER         #REQUIRED
      cols        NUMBER         #REQUIRED
      disabled    (disabled)     #IMPLIED  -- unavailable in this context --
      readonly    (readonly)     #IMPLIED
      tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
      accesskey   %Character;    #IMPLIED  -- accessibility key character --
      onfocus     %Script;       #IMPLIED  -- the element got the focus --
      onblur      %Script;       #IMPLIED  -- the element lost the focus --
      onselect    %Script;       #IMPLIED  -- some text was selected --
      onchange    %Script;       #IMPLIED  -- the element value was changed --
      >
    

    Start tag: required, End tag: required

    Why it breaks is another different story altogether, browsers could also implement it such that it just creates an empty textarea and not break. But since this is required by the standard, you should just follow it.

    — EDIT —

    Also as per @Seth comment (thanks!), it doesn’t have value attribute, so initial values go inside the tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use a textarea in html form to get the delimited
I have custom placeholders in a textarea and I would like every browser to
I would like to have the visual representation of an HTML5 <textarea> tag indicate
In my site if use textarea + WSYWWYG (Wyzz WYSIWYG). I would like to
Well, I would like to hightlight part of the text in a textarea tag,
How would you append a tag on a value inside a textarea, it only
How would I go about posting a textarea form? <form method=post action=/user/test/shoutbox/add id=shoutPost class=clearit>
I would like to allow literal TAB ( \t ) characters in my textarea's.
I would like to have some functionality by which if I write <textarea maxlength=50></textarea>
I'm looking for a WPF textarea component that would allow the user to search

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.