Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTML中的文本区域显示代码,而不是呈现和格式化_Html_Css - Fatal编程技术网

HTML中的文本区域显示代码,而不是呈现和格式化

HTML中的文本区域显示代码,而不是呈现和格式化,html,css,Html,Css,我以前做过文本区,但这一次真让我受不了。文本区域显示html代码,未正确使用css。所以在实际的窗口中,我得到了textarea元素的代码,并在其中显示了我的其余代码,而不是呈现它。没有textarea标签,一切都很顺利 <article> <form method="POST" name="form9" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <label for="firstName">

我以前做过文本区,但这一次真让我受不了。文本区域显示html代码,未正确使用css。所以在实际的窗口中,我得到了textarea元素的代码,并在其中显示了我的其余代码,而不是呈现它。没有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>


您没有关闭文本区域的开始标记(您缺少
):


还值得注意的是,

您忘记关闭文本区域的标签

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


打字错误文本区域中缺少结束语
。是的,谢谢。成功了。我觉得自己又傻又累,因此失明了。