It is possible to change the style of what you write there, such as changing the color or size of the letters. If not, what alternatives are there?
It is possible to change the style of what you write there, such as changing the color or size of the letters. If not, what alternatives are there?
If you can here I leave you an example:
#textarea {
font-family: arial, verdana, ms sans serif;
font-size: 20pt;
color: red;
background-color: blue;
}
<textarea id="textarea"></textarea>
Remember that although it is a very bad practice to do the following (I mean to put the css in the same html, instead of in another reading file by cascade, ie "example.css"), it can also be done :
<html>
<head>
<style type="text/css">
#textarea {
font-family: arial, verdana, ms sans serif;
font-size: 20pt;
color: red;
background-color: blue;
}
</style>
</head>
<body>
<textarea id="textarea"></textarea>
</body>
</html>
It can be changed with css example:
#textArea{
width:100px;
background-color: green;
}
<textArea id='textArea'>hola</textArea>
An alternative would be to use a div
that has the property contentEditable=true
#div1{
width:100px;
background-color: green;
}
<div id='div1' contenteditable=true>hola</div>