0
我在VS 2012 Express中輸入了一些HTML腳本,並觀察到以下情況:一條錯誤消息(行)說:驗證(XHTML5):元素'li'不能嵌套在元素' '腳本HTML使用用於Web的Visual Studio 2012 Express
- 是否可以直接從VS 2012 Express設計窗口在瀏覽器上運行HTML腳本?
這裏是我的代碼:
<form class="contact_form" action="" method="post" name="contact_form">
<ul>
<li>
<h2>Contact Us</h2>
<span class="required_notification">* Denotes Required Field</span>
</li>
<li>
<label for="name">Name:</label>
<input type="text" name="name" />
</li>
</ul>
<li>
<label for="email">Email:</label>
<input type="text" name="email" />
<span class="form_hint">Proper format "[email protected]"</span>
</li>
<li>
<label for="website">Website:</label>
<input type="text" name="website" />
<span class="form_hint">Proper format "http://someaddress.com"</span>
</li>
<li>
<label for="message">Message:</label>
<textarea name="message" cols="40" rows="6" >
</li>
<li>
<button class="submit" type="submit">Submit Form</button>
</li>