Screpy SEO platform logo New Screpy is coming 🎉

Lists do not contain only elements and script supporting elements ( and )

In order for the list elements to be configured correctly, the components in them must be included or removed correctly. Here are the details on that. Let’s see!

Reviewed by Screpy Editorial Team

Google Lighthouse generates a warning when it sees components that should not be in list elements. As follows:

Lists do not contain only <li> elements and script supporting elements

How to pass the audit? – Creating Correctly Structured Lists

It is extremely important that you can restructure the lists within the framework of the warning you received from Google Lighthouse. For this, you need to remove all the components that are in the list elements but should not be there. Check both ordered and unordered lists. If there are elements other than <li>, <script> or <template> components among the elements found here, remove all of them.

When a valid list structure is examined, you can see that the <ul> and <ol> elements are also included as the parent elements of the <li> element. These also do not spoil the valid view. However, all components other than this will spoil the valid structure and need to be fixed.

Related tasks

Solve the errors logged to the console

If there are error warnings about your website within the console offered by the browser, you need to follow a few basic steps to resolve them.

Tuesday, December 22, 2020

Title Tags Not Found

Are you encountering the title meta tag not found the issue? You can solve it right away! Here are the causes and importance of the problem in detail.

Sunday, December 20, 2020

Robots.txt Not Found

If you are encountering the Robots.txt not found error, you can create your file immediately by paying attention to the steps below. Discover the details now!

Sunday, December 20, 2020

Not Crawlable Pages

Have the same problem with crawlability issues? Let’s see what you can do for your website to be indexed. Here are the ways and solutions!

Sunday, December 20, 2020

Meta Description Not Found

Are you getting a meta description not found a warning about your web page? Let's figure it out! Why is meta description important, how to pass the audit? Examine!

Sunday, December 20, 2020