Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/html/multimedia/adding-audio-and-video.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ To add video to your HTML document, you can use the `<video>` element. The `<vid
```

<BrowserWindow url="http://127.0.0.1:5500/index.html">
<video controls width="640" height="360">
<video controls className="w-full h-auto">
<source src="/video/video.mp4" type="video/mp4" />
Your browser does not support the video element.
</video>
Expand Down
8 changes: 4 additions & 4 deletions docs/html/multimedia/embedding-multimedia-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ To embed images in your HTML document, you can use the `<img>` element. The `<im
<img src="image.jpg" alt="Image Description">
```

<!-- <BrowserWindow url="http://.../index.html">
<img src="/images/image.jpg" alt="Image Description" />
</BrowserWindow> -->
<BrowserWindow url="http://.../index.html">
![Image Description](../images/assets/jpeg-image.jpg)
</BrowserWindow>

In the example above, we have used the `<img>` element with the `src` attribute to specify the image file's URL and the `alt` attribute to provide a text description of the image. The `alt` attribute is used for accessibility purposes and is displayed if the image fails to load.

Expand Down Expand Up @@ -58,7 +58,7 @@ To add video to your HTML document, you can use the `<video>` element. The `<vid
```

<BrowserWindow url="http://127.0.0.1:5500/index.html">
<video controls width="640" height="360">
<video controls className="w-full h-auto">
<source src="/video/video.mp4" type="video/mp4" />
Your browser does not support the video element.
</video>
Expand Down
Loading