我以前做过文本区域,但这个让我很受不了。文本区域显示的是 html 代码,并且没有正确地使用 css。所以在实际的窗口中,我得到了文本区域元素的代码,它也显示了我的其余代码,而不是渲染它。没有 textarea 标签,一切都很好。
<article>
<form method="POST" name="form9" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<label for="firstName">First Name <sup>*</sup></label>
<input type="text" id="firstName" name="firstName" required />
<label for="lastName">Last Name <sup>*</sup></label>
<input type="text" id="lastName" name="lastName"/>
<label for="wrstyle">Writing Style <sup>*</sup></label>
<textarea placeholder="Please, briefly describe your writing style." type="text" id="wrstyle" name="wrstyle"</textarea>
<label for="submit" class="centerit" title="Click here to register your account">
<input type="submit" name="submit" value="Sign Up" />
</label>
<p class="notice"><sup>*</sup> denotes a required field.</p>
</form>
</article>
最佳答案
关于html - HTML 中的文本区域显示代码而不是呈现和格式化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16074998/