html textfeld code example

Example 1: textfeld erstellen html

<textarea></textarea>

Example 2: html text box

<!-- A <textarea> tag (better for multi-line text)-->
<textarea cols="4" rows="5">
Some text inside the text box.  
See https://www.w3schools.com/tags/tag_textarea.asp
</textarea>

<!-- An <input> type text tag (better for single-line text) -->
<input type="text" value="Some text inside the text box">
<!-- See https://www.w3schools.com/tags/att_input_type_text.asp -->

<!-- Using contenteditable (not recommended) -->
<p contenteditable="true">Some text inside the text box</p>
<!-- See https://www.w3schools.com/tags/att_global_contenteditable.asp -->

Example 3: html italic

<b>I'm a content</b> <!-- Ce texte va etre en gras -->
<i>I'm a content</i> <!-- Ce texte va etre italic -->
<u>I'm a content</u> <!-- Ce texte va etre souligner -->

Tags:

Html Example