[英]Errors in HTML - red ending paragraph tags
這是我的第一個網頁,結尾標記為紅色。
有人可以告訴我我做錯了什么嗎?
這是我的代碼。 它工作正常,但是當我嘗試向其中添加一些CSS時,它開始以一種奇怪的方式顯示我的文本,因此我認為它的代碼中肯定有一些錯誤。
<body> <header> <h1><a href="http://epro.motorparks.co.uk/?" title="Engagement Pro">Engagement Pro</a></h1> </header> <section> <h2>Frequently Asked Questions</h2> <h3>Below you will find answers to the questions we get asked the most about Engagement Pro.</h3> <div> <p> Managers <ul> <li>Why can't log in?</li> <li>A lead came through with no contact details, how do I remove it?</li> <li>I have added a comment to an unlogged lead, why is it not excluded?</li> <li>A guest enquired twice, but when I created the enquiry it didn't link to the other one.</li> <li>Where do I find leads that are being added in my diary by reception?</li> </ul> </p> <p> Sales associates <ul> <li>Why can't log in?</li> <li>Why doesn't the 'Export to Pinnacle' button work?</li> <li>Why do I have guests I know nothing about in my diary?</li> <li>Is there an easier way to see my diary for today, other han changing the date range?</li> <li>When adding an appointment, it doesn't show in my appointments diary</li> <li>Why are the postcodes highlighted yellow or green sometimes?</li> </ul </p> <p> Product geniuses <ul> <li>Why can't log in?</li> <li>Why does my video have so little views?</li> <li>Why can I not save a video?</li> </ul> </p> <p>For any other questions/suggestions please contact Steven Harris or Andreea Mitel.</p> </section> <footer> </footer> </body>
您必須注意, <p>
元素中不允許使用<ul>
。
我在您的代碼中發現一些代碼錯誤,並使用HTML注釋對其進行了修復。 希望現在對您來說一切正常! :)
這里有一點要記住: ul
元素在p
元素內是合法不允許的。 這是原因 。 在您的代碼中,您還忘記關閉一些標簽/缺少一些結束標簽。
<body> <header> <h1><a href="http://epro.motorparks.co.uk/?" title="Engagement Pro">Engagement Pro</a></h1> </header> <section> <h2>Frequently Asked Questions</h2> <h3>Below you will find answers to the questions we get asked the most about Engagement Pro.</h3> <div> <p>Managers</p> <!-- Properly closing <p> --> <ul> <li>Why can't log in?</li> <li>A lead came through with no contact details, how do I remove it?</li> <li>I have added a comment to an unlogged lead, why is it not excluded?</li> <li>A guest enquired twice, but when I created the enquiry it didn't link to the other one.</li> <li>Where do I find leads that are being added in my diary by reception?</li> </ul> <p>Sales associates</p> <!-- Properly closing <p> --> <ul> <li>Why can't log in?</li> <li>Why doesn't the 'Export to Pinnacle' button work?</li> <li>Why do I have guests I know nothing about in my diary?</li> <li>Is there an easier way to see my diary for today, other han changing the date range?</li> <li>When adding an appointment, it doesn't show in my appointments diary</li> <li>Why are the postcodes highlighted yellow or green sometimes?</li> </ul> <!-- <ul> was not properly closed --> <p>Product geniuses</p> <!-- Properly closing <p> --> <ul> <li>Why can't log in?</li> <li>Why does my video have so little views?</li> <li>Why can I not save a video?</li> </ul> <p>For any other questions/suggestions please contact Steven Harris or Andreea Mitel.</p> </div> <!-- Closing <div> was missing --> </section> <footer> </footer> </body>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.