HTML中的文本区域显示代码,而不是呈现和格式化
我以前做过文本区,但这一次真让我受不了。文本区域显示html代码,未正确使用css。所以在实际的窗口中,我得到了textarea元素的代码,并在其中显示了我的其余代码,而不是呈现它。没有textarea标签,一切都很顺利HTML中的文本区域显示代码,而不是呈现和格式化,html,css,Html,Css,我以前做过文本区,但这一次真让我受不了。文本区域显示html代码,未正确使用css。所以在实际的窗口中,我得到了textarea元素的代码,并在其中显示了我的其余代码,而不是呈现它。没有textarea标签,一切都很顺利 <article> <form method="POST" name="form9" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <label for="firstName">
<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>
您没有关闭文本区域的开始标记(您缺少
):
还值得注意的是,您忘记关闭文本区域的标签
<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>
打字错误文本区域中缺少结束语
。是的,谢谢。成功了。我觉得自己又傻又累,因此失明了。