2013-04-18 121 views
0

我已经完成了textareas,但这个只是在杀死我。文本区域显示的是html代码,并没有正确显示。所以在实际的窗口中,我得到了textarea元素的代码,它也显示了我的代码的其余部分,而不是渲染它。没有textarea标签,一切都很好用。HTML中的文本区域显示代码,而不是呈现和格式化

<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> 
+0

错字? textarea中没有关闭'>'。 – Nathan 2013-04-18 05:19:06

+1

是的,谢谢。那样做了。我感到愚蠢和疲倦,因此失明。 – 2013-04-18 05:23:09

回答

0

你忘了关文本的标签面积.......

<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> 
相关问题