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>
<html>
    <head>
        <title>Setting Width and Height on Textareas</title>
        <style>
            .comments { width: 300px; height: 75px }
        </style>
    </head>
    <body>
        <textarea class="comments"></textarea>
    </body>
</html>