- Normal text area (HTML)
- Control the dimension of textarea (HTML)
- A textarea with background image/picture (HTML)
- A textarea with background color (HTML)
- A textarea with color font (HTML)
- A textarea that can show HTML code (HTML)
- A textarea that auto highlight the words (HTML mouseover)
1. Normal Textarea (HTML)
sample:
code:
<textarea>This is a simple text area</textarea>
<textarea>This is a simple text area</textarea>
2. Control the dimension of textarea (HTML)
You can control the size by changing the "cols" and "rows".
code:
<textarea class="codecontainer" cols="45" rows="8">text here</textarea>
3. A textarea with background image/picture (HTML)
The textarea will not follow the dimension of the background image, so you need to change the dimension of textarea yourself.
sample:
sample:
code:
<textarea cols="22" rows="12" style="background-image: url(Your image URL here);">text here </textarea>
4. A textarea with background color (HTML)
sample:
code:
<textarea cols="23" rows="2" style="background-color: blue;">text here</textarea>
code:
<textarea cols="23" rows="2" style="background-color: blue;">text here</textarea>
5. A textarea with color font (HTML)
Control the font size by changing the "font:18px"
Control the font color by changing the "color: blue"
Control the font color by changing the "color: blue"
sample:
code:<textarea cols="23" rows="2" style="color: blue; font: 18px cursive;">text here</textarea>
code:<textarea cols="23" rows="2" style="color: blue; font: 18px cursive;">text here</textarea>
6. A textarea that can show HTML code (HTML)
sample:
code:
<textarea class="codecontainer" cols="45" rows="3" wrap="virtual">text and code here</textarea>
<textarea class="codecontainer" cols="45" rows="3" wrap="virtual">text and code here</textarea>
7. A textarea that auto highlight the words (HTML mouseover)
sample:
code:
<textarea cols="45" onfocus="this.select()" onmouseover="this.focus()" rows="3">text here here here</textarea>
code:
<textarea cols="45" onfocus="this.select()" onmouseover="this.focus()" rows="3">text here here here</textarea>
No comments:
Post a Comment