Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <p>If you need to check more information, check here
  <span class="toggletip-container">
    <button class="toggletip-button">
      <span class="toggletip-icon" aria-hidden="true">?</span>
      <div class="sr-only">Más información</div>
    <span role="status" class="toggletip-info"></span>


                body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

button {
  font-family: inherit;

.toggletip-container {
  position: relative;

.toggletip-button {
  display: inline-grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rebeccapurple;
  color: white;
  border-color: transparent;

.toggletip-button:focus {
  outline: max(2px, 0.08em) solid rebeccapurple;
  outline-offset: max(2px, 0.08em)

.toggletip-icon {
  font-family: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
  font-weight: bold;

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;

.toggletip-info {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30ch;
  padding: 0.5rem;
  border-radius: 10px;
  color: white;
  background-color: black;
  transform: translate(-50%, 100%);

.toggletip-info:empty {
  display: none;



                const toggletipContainer = document.querySelector(".toggletip-container");
const toggletipButton = document.querySelector(".toggletip-button");
const toggletipInfo = document.querySelector(".toggletip-info");
const toggletipContent = `<p>This is the help information about this section.</p>`;

toggletipButton.addEventListener("click", () => {
  toggletipInfo.innerHTML = "";
  setTimeout(() => {
    toggletipInfo.innerHTML = toggletipContent;
  }, 100);

document.addEventListener("click", (e) => {
  if (toggletipContainer !== {
    toggletipInfo.innerHTML = "";

toggletipContainer.addEventListener("keydown", (e) => {
  if (e.key === "Escape") {
    toggletipInfo.innerHTML = "";

toggletipButton.addEventListener("blur", () => {
  toggletipInfo.innerHTML = "";