HTML – Textareas
Textareas of this kind are used for comments, blogs, memos or any other purpose that requires an expression space.
To create a text area we will need an opening and ending tag like this:
HTML
<textarea>Text area!</textarea>
Demo
Textarea – text area size
To change the standard size of a text area we will use columns and rows. Those will have numerical values. The bigger their value will be, the bigger the text area will be.
HTML
<textarea cols="50" rows="2">Text area!</textarea>
<textarea cols="40" rows="5">Text area!</textarea>
<textarea cols="20" rows="10">Text area!</textarea>
Demo
Textarea – The wrap attribute
This attribute of the <textarea> tag, will establish the way in which the text will react when it will reach the end of the line.
Wrap will have one of the three values: hard, soft, off.
- Hard wrap – will place an enter at the end of every line and will send the text in the same format it was introduced.
- Soft wrap – will place an enter at the end of every line, but unlike the Hard one it will send the text in a free format.
- Off wrap – this will not format the text in any way, letting the text in a single continuous line.
The Hard/Soft attribute
HTML
<textarea cols="20" rows="5" wrap="hard">Hard - will place an enter at the end of every line and will send the text in the same format it was introduced.</textarea>
Demo
The off attribute
HTML
<textarea cols="20" rows="5" wrap="off">Off - this will not format the text in any way, letting the text in a single continuous line.</textarea>
Demo
Textarea – The readonly attribute
Depending of the value of this attribute, the user is able (or not) to change the content of the text area. The readonly attribute can have the ‘yes’ or ‘no’ values.
HTML
<textarea cols="20" rows="5" wrap="hard" readonly="yes">As you can see this text cannot be modified. In the case in which the 'no' value would be chosen the opposite result would be obtained.</textarea>
Demo
As you can see this text cannot be modified. In the case in which the ‘no’ value would be chosen the opposite result would be obtained. Even though it cannot be modified, it can be highlighted and copied with CTRL-C or right click/copy.
Textarea – The disabled attribute
The disabled attribute is not much different from readonly. The text will be shown in gray, disabling at the same time the possibility of modifying the text that text area contains.
HTML
<textarea cols="20" rows="5" wrap="hard" disabled="yes">The disabled attribute is not much different from readonly. The text will be shown in gray, disabling at the same time the possibility of modifying the text that text area contains.</textarea>
Demo
You will have to practice a bit with these attributes in order to get better. Good luck!
Python Example for Beginners
Two Machine Learning Fields
There are two sides to machine learning:
- Practical Machine Learning:This is about querying databases, cleaning data, writing scripts to transform data and gluing algorithm and libraries together and writing custom code to squeeze reliable answers from data to satisfy difficult and ill defined questions. It’s the mess of reality.
- Theoretical Machine Learning: This is about math and abstraction and idealized scenarios and limits and beauty and informing what is possible. It is a whole lot neater and cleaner and removed from the mess of reality.
Data Science Resources: Data Science Recipes and Applied Machine Learning Recipes
Introduction to Applied Machine Learning & Data Science for Beginners, Business Analysts, Students, Researchers and Freelancers with Python & R Codes @ Western Australian Center for Applied Machine Learning & Data Science (WACAMLDS) !!!
Latest end-to-end Learn by Coding Recipes in Project-Based Learning:
Applied Statistics with R for Beginners and Business Professionals
Data Science and Machine Learning Projects in Python: Tabular Data Analytics
Data Science and Machine Learning Projects in R: Tabular Data Analytics
Python Machine Learning & Data Science Recipes: Learn by Coding
R Machine Learning & Data Science Recipes: Learn by Coding
Comparing Different Machine Learning Algorithms in Python for Classification (FREE)
Disclaimer: The information and code presented within this recipe/tutorial is only for educational and coaching purposes for beginners and developers. Anyone can practice and apply the recipe/tutorial presented here, but the reader is taking full responsibility for his/her actions. The author (content curator) of this recipe (code / program) has made every effort to ensure the accuracy of the information was correct at time of publication. The author (content curator) does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause. The information presented here could also be found in public knowledge domains.