<section class="px-4 pt-20 pb-24 mx-auto max-w-7xl md:px-2">
<h1 class="mb-8 text-xl font-bold md:text-3xl">Frequently Asked Questions</h1>
<div class="grid grid-cols-1 gap-0 text-sm md:grid-cols-2 md:gap-5">
<div>
<div x-data="collapse()" class="px-4 mb-4 bg-gray-100 rounded">
<button
x-spread="trigger"
class="flex items-center justify-start w-full py-4 pr-1 font-bold text-left text-gray-800 outline-none hover:text-primary focus:text-primary focus:outline-none"
role="button"
aria-controls="faq7"
aria-expanded="false"
>
<svg :class="{ 'rotate-90': open }" class="flex-none w-4 h-4 mr-2 transition transform" aria-hidden="true" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
Why doesn't my CSS, which is valid, render correctly?
</button>
<div x-spread="collapse" x-cloak class="pb-5 ml-6 text-gray-700" id="faq7">
Browsers use the DOCTYPE declaration to choose whether to show the document using a mode that is more compatible with Web standards or with old browser bugs. Using a correct and modern
DOCTYPE declaration at the start of your HTML will improve browser standards compliance.
</div>
</div>
<div x-data="collapse()" class="px-4 mb-4 bg-gray-100 rounded">
<button
x-spread="trigger"
class="flex items-center justify-start w-full py-4 pr-1 font-bold text-left text-gray-800 outline-none hover:text-primary focus:text-primary focus:outline-none"
role="button"
aria-controls="faq8"
aria-expanded="false"
>
<svg :class="{ 'rotate-90': open }" class="flex-none w-4 h-4 mr-2 transition transform" aria-hidden="true" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
CSS and JavaScript accessibility best practices? CSS and JavaScript accessibility best practices?
</button>
<div x-spread="collapse" x-cloak class="pb-5 ml-6 text-gray-700" id="faq8">
HTML elements can have an id and/or class attribute. The id attribute assigns a name to the element it is applied to, and for valid markup, there can be only one element with that name. The
class attribute assigns a class name to the element, and that name can be used on many elements within the page. CSS allows you to apply styles to particular id and/or class names.
</div>
</div>
<div x-data="collapse()" class="px-4 mb-4 bg-gray-100 rounded">
<button
x-spread="trigger"
class="flex items-center justify-start w-full py-4 pr-1 font-bold text-left text-gray-800 outline-none hover:text-primary focus:text-primary focus:outline-none"
role="button"
aria-controls="faq9"
aria-expanded="false"
>
<svg :class="{ 'rotate-90': open }" class="flex-none w-4 h-4 mr-2 transition transform" aria-hidden="true" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
What do the -moz-*, -ms-*, -webkit-*, -o-* and -khtml-* properties do?
</button>
<div x-spread="collapse" x-cloak class="pb-5 ml-6 text-gray-700" id="faq9">
The use of such properties on production websites is not recommended — they have already created a huge web compatibility mess. For example, many developers only using the -webkit- prefixed
version of a property when the non-prefixed version is supported across all browsers meant that a feature relying on that property would break in non-webkit-based browsers, completely
needlessly. This problem got so bad that other browsers started to implement -webkit- prefixed aliases to improve web compatibility, as specified in the Compatibility Living Standard.
</div>
</div>
</div>
<div>
<div x-data="collapse()" class="px-4 mb-4 bg-gray-100 rounded">
<button
x-spread="trigger"
class="flex items-center justify-start w-full py-4 pr-1 font-bold text-left text-gray-800 outline-none hover:text-primary focus:text-primary focus:outline-none"
role="button"
aria-controls="faq10"
aria-expanded="false"
>
<svg :class="{ 'rotate-90': open }" class="flex-none w-4 h-4 mr-2 transition transform" aria-hidden="true" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
Why doesn't my CSS, which is valid, render correctly?
</button>
<div x-spread="collapse" x-cloak class="pb-5 ml-6 text-gray-700" id="faq10">
Browsers use the DOCTYPE declaration to choose whether to show the document using a mode that is more compatible with Web standards or with old browser bugs. Using a correct and modern
DOCTYPE declaration at the start of your HTML will improve browser standards compliance.
</div>
</div>
<div x-data="collapse()" class="px-4 mb-4 bg-gray-100 rounded">
<button
x-spread="trigger"
class="flex items-center justify-start w-full py-4 pr-1 font-bold text-left text-gray-800 outline-none hover:text-primary focus:text-primary focus:outline-none"
role="button"
aria-controls="faq11"
aria-expanded="false"
>
<svg :class="{ 'rotate-90': open }" class="flex-none w-4 h-4 mr-2 transition transform" aria-hidden="true" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
What is the difference between id and class?
</button>
<div x-spread="collapse" x-cloak class="pb-5 ml-6 text-gray-700" id="faq11">
HTML elements can have an id and/or class attribute. The id attribute assigns a name to the element it is applied to, and for valid markup, there can be only one element with that name. The
class attribute assigns a class name to the element, and that name can be used on many elements within the page. CSS allows you to apply styles to particular id and/or class names.
</div>
</div>
<div x-data="collapse()" class="px-4 mb-4 bg-gray-100 rounded">
<button
x-spread="trigger"
class="flex items-center justify-start w-full py-4 pr-1 font-bold text-left text-gray-800 outline-none hover:text-primary focus:text-primary focus:outline-none"
role="button"
aria-controls="faq12"
aria-expanded="false"
>
<svg :class="{ 'rotate-90': open }" class="flex-none w-4 h-4 mr-2 transition transform" aria-hidden="true" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
What do the -moz-*, -ms-*, -webkit-*, -o-* and -khtml-* properties do?
</button>
<div x-spread="collapse" x-cloak class="pb-5 ml-6 text-gray-700" id="faq12">
The use of such properties on production websites is not recommended — they have already created a huge web compatibility mess. For example, many developers only using the -webkit- prefixed
version of a property when the non-prefixed version is supported across all browsers meant that a feature relying on that property would break in non-webkit-based browsers, completely
needlessly. This problem got so bad that other browsers started to implement -webkit- prefixed aliases to improve web compatibility, as specified in the Compatibility Living Standard.
</div>
</div>
</div>
</div>
</section>