Contenido del Curso
Test UI Features
Test UI Features
3. Image Tools
6. Text Boxes
NoteStudy MoreDefinition Text BlockChatGPT Prompt Input - OutputQuote Text BoxFile name headerPrerequisites Box With LinksNested ListSuperscript/SubscriptCopyable Text BoxExpandable ListCode Block - Highlighted & Copyable SQLCode Block - Highlighted & Copyable PythonCode Block - Highlighted & Copyable JavaScriptCode Block - Highlighted & Copyable JavaCode Block - Highlighted & Copyable DartCode Block - Highlighted & Copyable C++Code Block - Highlighted & Copyable CCode Block - Highlighted & Copyable C#
9. Deprecated
+ (deprecated) Hint and Solution Single Block+ (deprecated) TypeScript Hint/Solution+ (deprecated) C# Hint/Solution+ (deprecated) JavaScript Hint/Solution+ (deprecated) Java Hint/Solution+ (deprecated) GO Lang Hint/Solution+ (deprecated) Python Hint/Solution+ (deprecated) Java Hint/Solution with Copyable & Highlighted Code+ (deprecated) Scala Hint/Solution with Copyable & Highlighted Code+ (deprecated) Hint/Video Tutorial+ (deprecated) Hint/Solution/Video Tutorial(deprecated) Interactive Video + (deprecated) Images Slider+ (deprecated) Images Carousel+ (deprecated) Image Magnifier+ (deprecated) Image Carousel & Magnifier+(deprecated) Image Magnifying Glass+ (deprecated) Linked List+ (deprecated) IDE Testing+ (deprecated) CSS Example Practice Test+ (deprecated) Spinning anim+ (deprecated) Temporary Hint/Video Tutorial+ (deprecated) Temporary Hint/Solution/Video Tutorial+ (deprecated) Joke+ (deprecated) Animated border+ (deprecated) Default Custom Table+ (deprecated) Table Action+ (deprecated) Styled Table
Expandable List
Element
Source Code
index.html
README
Expandable accordion component. It allows users to reveal or hide content inside collapsible sections.
How to Use the Component
Create the container for the accordion items.
Each accordion item consists of:
- A hidden checkbox (
input[type="checkbox"]
): controls expansion; - A label (
label
): acts as the clickable trigger; - A content container (
div.content
): holds the expandable content.
Creating an Accordion Item
Each item must follow this structure:
Key points to remember:
- The
<input>
must have a uniqueid
; - The
<label>
must have a matchingfor
attribute that references theid
of the checkbox; - The
.content
section contains the content that will be shown or hidden when the label is clicked.
Adding Content Inside an Accordion Item
If your content requires a list of items, use <ul>
and <li>
inside .content
:
If your content is just text (not a list), use <p>
inside .content
:
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 6. Capítulo 11