Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <h1>Alt-less Images</h1>

<p>
  Each of the following images intentionally has no <code>alt</code> attribute. The idealized alternative text is in the caption. It is meant to cause browsers to present their own auto-generated alternative text (when a screen reader is running). Used in the post <cite><a href="https://adrianroselli.com/2022/08/ai-generated-images-from-ai-generated-alt-text.html" target="_top">AI-Generated Images from AI-Generated Alt Text</a></cite>.

</p>

<figure>
  <img src="https://adrianroselli.com/wp-content/uploads/2022/08/AI-illustration.png" width="300" height="300">
<img src="https://adrianroselli.com/wp-content/uploads/2022/08/AI-illustration.svg" width="300" height="300">
   <figcaption>Alt: A cartoonish Kawaii slice of toast with happy eyes, open smiling mouth, and reddish cheeks; there is a spatter of blood coming from the top of the toast similar to the Watchmen logo.</figcaption>
</figure>


<figure>
  <img src="https://adrianroselli.com/wp-content/uploads/2022/08/AI-photo.jpg" width="1024" height="682">
   <figcaption>Alt: Looking across the atrium with four levels of the gallery space / ramp visible. The ramp contains exhibits as well as crowds of people moving among them, with some people leaning over the edge of the ramp wall.</figcaption>
</figure>


<figure>
  <img src="https://adrianroselli.com/wp-content/uploads/2022/08/AI-digital.jpg" width="1024" height="1527">
   <figcaption>Alt: A photo illustration travel poster showing a cluster of metallic hot air balloons with spheroid gondolas floating above the opaque clouds of Jupiter’s atmosphere. Behind and above the balloons is a sweeping aurora of teal, and purple against a black starry sky. The advertisement reads “Experience the mighty auroras of Jupiter” in metallic block text at the bottom of the poster.</figcaption>
</figure>


<figure>
  <img src="https://adrianroselli.com/wp-content/uploads/2022/08/AI-enhanced.jpg" width="1041" height="603">
   <figcaption>Alt: an undulating, translucent star-forming region in the Carina Nebula is shown in this Webb image, hued in ambers and blues; foreground stars with diffraction spikes can be seen, as can a speckling of background points of light through the cloudy nebula</figcaption>
</figure>

 <figure>
  <img src="https://adrianroselli.com/wp-content/uploads/2022/08/AI-painting.jpg" width="970" height="768">
  <figcaption>Alt: A night sky swirling with vivid blue spirals, a dazzling golden crescent moon, and constellations depicted as radiating spheres dominate the oil-on-canvas artwork. One or two flame-like cypress trees loom over the scene to the side, their black limbs curving and undulating to the motion of the partly obscured sky. A structured settlement lies in the distance in the bottom right of the canvas, among all of this activity. The modest houses and the thin spire of a church, which stands as a beacon against undulating blue hills, are made out of straight, controlled lines.</figcaption>
 </figure>
              
            
!

CSS

              
                body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  /*   line-height: 1.5; */
  /*   letter-spacing: 0.12em; */
  /*   word-spacing: 0.16em; */
}

img {
  height: auto;
  width: auto;
  max-width: 80vw;
  max-height: 50vh;
}

h1 + p + figure > img {
  max-width: 40vw;
}

figure {
  margin-block: 5em;
}
              
            
!

JS

              
                
              
            
!
999px

Console