Skip to content

Remove cols="30" rows="10" from textarea Snippet #725

Open
@wesbos

Description

Following up on this issue from @LeaVerou #582

<textarea name="" id="" cols="30" rows="10"></textarea>

Could we talk about removing cols and rows from the textarea snippet? Or at least making it a tab highlight to easily delete?

I think very few people use cols/rows to size textareas these days, as sizing it via CSS with width, height, block/inline size, or the upcoming field-sizing attribute are all ways to control how large the text area is.

If someone does want the textarea to be sized based on font size, using with/height with ems in css is a better route

All browsers provide a reasonable default for textarea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions