2013-10-22 20 views
0

我在VS 2012 Express中輸入了一些HTML腳本,並觀察到以下情況:一條錯誤消息(行)說:驗證(XHTML5):元素'li'不能嵌套在元素' '腳本HTML使用用於Web的Visual Studio 2012 Express

  1. 是否可以直接從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> 

回答

0

我有固定的:

1. textarea標籤沒有關閉:

<textarea name="message" cols="40" rows="6" > 
  1. 是的,我可以運行通過右鍵單擊設計選項卡或使用調試工具,從VS Express設計器獲取HTML腳本。
相關問題