<div style="display:flex;">
    <label for="user-comment" style="margin-right: 0.5em;">Comment</label>
    <textarea id="user-comment" rows="6" cols="22"></textarea>
</div>
Rendered Output
<textarea rows="6" cols="22">
An initial value can be specified by inserting it directly as the content.
</textarea>
Rendered Output
<textarea rows="6" cols="22"></textarea>
Rendered Output
<div style="display: flex;">
    <label for="user-comment" style="margin-right: 0.5em;">Comment</label>
    <textarea
        id="user-comment"
        rows="6"
        cols="22"
        placeholder="Enter a brief comment..."></textarea>
</div>
Rendered Output
<textarea placeholder="Comment"></textarea>
Rendered Output
<textarea rows="6" cols="22" readonly>
readonly textarea
</textarea>
<br>
<textarea rows="6" cols="22" disabled>
disabled textarea
</textarea>
Rendered Output
<textarea 
    rows="6" 
    cols="22" 
    minlength="10" 
    maxlength="20" 
    placeholder="Enter between 10 and 20 characters..."></textarea>
Rendered Output Try entering text directly.
<form>
    <div style="display: flex; margin-bottom: 1em;">
        <label for="user-comment" style="margin-right: 0.5em;">Comment (*Required)</label>
        <textarea
            id="user-comment"
            rows="6"
            cols="22"
            placeholder="Enter a brief comment..."
            required></textarea>
    </div>
    <button type="submit">Submit</button>
</form>
Rendered Output Try clicking the 'Submit' button without entering anything.
You can see that the browser displays an error message indicating that the field is required.
<div contenteditable="true" style="padding: 15px; background: #eee; border-radius: 5px;">
    Try editing this content directly.
</div>
Live Example Preview You can edit the content directly in the box above.