How to Add Media to Web Projects

Adding media to your web project is a great way to make it more engaging! You can upload images, sound, and video to your Web Studio ⎋ project with the Media button, and Web Studio gives you the HTML you need to use them.

Upload Media

  1. Sign in to Web Studio ⎋ and open one of your web projects.

  2. Select the Media button in the toolbar. You will only see this button on your own projects.

  3. In the Media pop-up, select Upload a file and choose a file from your computer. A progress bar shows while the file uploads.

  4. When the upload finishes, your file appears in the list with a preview.

The "Media" pop-up with an "Upload a file" button and a list containing "mars.png," with a picture of the planet, a box of HTML code that begins with an img tag, and "Copy HTML," "Copy link," and "Delete" buttons.

Add Media to Your Page

Each file in the Media pop-up comes with ready-to-use HTML.

  1. Select Copy HTML next to the file.
  2. Close the pop-up, then paste the code into your HTML pane where you want the media to appear.
  3. Select Save.

The HTML Web Studio gives you depends on the type of file:

Want just the address of the file, for example to use in your CSS (background-image: url(...)) or JavaScript? Select Copy link instead.

Check your alt text! For images, Web Studio writes the alt text from the file name. Update it to describe what is in the picture, so that people using screen readers know what it shows.

Delete Media

Select Delete next to a file to remove it. The file is deleted right away, and any part of your page that uses it will stop showing it.

Accepted Media Types

Files must be smaller than 5 MB and have names shorter than 64 characters. Web Studio accepts these file types:

If a file is too large, has a name that is too long, or is a type Web Studio doesn’t accept, you will see a message explaining why it could not be uploaded.

Using Media From Other Websites

You can also use images and other media that are already online by putting their address in your code. Some websites don’t allow their images to be shown in Web Studio’s live preview, so they may look blank while you are editing but will appear on your published page.

Media files can be seen by anyone with the link. Only upload media that is OK to share, even in a private project, and keep personal information private. If you did not create a piece of media yourself, make sure you have permission to use it and give proper credit in your project's README.