Complete the code to reference a static image from the public directory in Astro.
<img src="/[1]" alt="Logo">
Files in the public directory are served from the root URL. So you reference them directly by their filename.
Complete the code to link a CSS file stored in the public directory in Astro.
<link rel="stylesheet" href="/[1]">
CSS files in the public folder are served from the root URL, so you use the path relative to public.
Fix the error in the code to correctly reference a PDF file from the public directory in Astro.
<a href="/[1]" download>Download PDF</a>
Files inside the public directory are served from the root URL, so the path should be relative to public without 'public/' prefix.
Fill both blanks to create an image tag referencing a file in the public directory with alt text.
<img src="/[1]" alt="[2]">
The src attribute should point to the file path relative to the public folder, and the alt attribute should describe the image for accessibility.
Fill all three blanks to create a link to a JavaScript file in the public directory with type and defer attributes.
<script src="/[1]" type="[2]" [3]></script>
The src attribute points to the JS file relative to public. The type attribute specifies the script type, and defer makes the script load after HTML parsing.