Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Picture ElementNew to Visual Studio Code? Get it now.
Picture Element

Picture Element

Jake Wilson

|
391,227 installs
| (0) | Free
HTML5 Picture Element snippet
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Picture Element snippet for Visual Studio Code

This inserts an HTML5 <picture> element snippet into your HTML using the keyword picture.

Usage

When editing an HTML file, type: picture to activate the snippet:

<picture>
  <source srcset='large.webp' media='(min-width: 992px)' type='image/webp'>
  <source srcset='large.jpg' media='(min-width: 992px)' type='image/jpeg'>
  <img src=small.jpg' alt=''>
</picture>

Supported Languages: html

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft