Showing RAW Form on HTML webpage -
this question has answer here:
- how display html tags plain text 9 answers
i cant figure out how show form plain raw text on html webpage, keeps giving me form on page not raw text code.
<form name="myform" action="demo_form.asp" onsubmit="return validateform()" method="post"> name: <input type="text" name="fname"> <input type="submit" value="submit"> </form>
to prevent html code being executed use <
, >
symbols replace <
, >
: https://jsfiddle.net/x5704lw3/
html
<form name="myform" action="demo_form.asp" onsubmit="return validateform()" method="post"> <br>name: <input type="text" name="fname"> <br><input type="submit" value="submit"> <br></form>
Comments
Post a Comment