August 7, 20188 yr I have a list on a website. It's currently using XHTML, but I intend switching to HTML5 soon. This is a snippit. <ol type="i"> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/lawfulness-fairness-and-transparency/">Lawfulness, fairness and transparency</a></li> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/purpose-limitation/">Purpose limitation</a></li> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/data-minimisation/">Data minimisation</a></li> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/accuracy/">Accuracy</a></li> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/storage-limitation/">Storage limitation</a></li> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/integrity-and-confidentiality-security/">Integrity and confidentiality (security)</a> </li> <li><a href="https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/principles/accountability-principle/">Accountability</a></li> </ol> which generates roman numerals. It works fine in my browser, but the W3C validator complains that "type" is not supported". I'm hoping there's some way of creating the list like this, this is compliant with the HTML5. Dave
August 7, 20188 yr Change your <ol> to <ol style="list-style-type:lower-roman;"> or create a class in the CSS for your <ol> and place the css there. <ol class="roman-ol"> Then in your CSS ol.roman-ol { list-style-type:lower-roman; }
August 12, 20187 yr Author On 08/ 7/2018 at 10:52 AM, jpeters8889 said: Change your <ol> to <ol style="list-style-type:lower-roman;"> or create a class in the CSS for your <ol> and place the css there. <ol class="roman-ol"> Then in your CSS ol.roman-ol { list-style-type:lower-roman; } Thank you. Sorry for the delay in responding - I had overlooked your reply, despite you made it several days ago. Dave
Create an account or sign in to comment