How to use textarea rows, and cols attribute in CSS

To define the size of a text field,in CSS using “rows” and “colsattributes, or the CSS height and width properties,we will need to consider some things and i have put those things down in the DEMO below to ease you of the stress in achieving the result of the problem above:

<!DOCTYPE html>
        <title>Setting Width and Height on Textareas</title>
            .comments { width: 300px; height: 75px }
        <textarea class="comments"></textarea>