Hi all, fairly new to all this and I just have a question about the link for the files. does the + do anything between say “Semantic+HTML” or is that just how the file path was named?
Also, on the previous exercise we covered some attributes that we can enclose in the media tags (
Lastly, I’m just starting with the basics of HTML and I’m not a paid subscriber (still evaluating if this is something I can really pursue) from anyone out there who is a paid subscriber, just how much am I missing out on with this course?
I switched to a paid subscription this week and like you wanted to see if I was able to code first before really investing money into something like this. There are lots of websites out there that are free to use that have similar content but I really like the style of this site and the projects they give you to cement what you have learned. I think you can’t access some content on the free version but you could use other sites in its place.
I’m confused by the src attribute’s placement. Can someone explain why it jumps all over the place for different elements. It’s in the opening tag of the <video> and <image> elements but needs a <source> element for <audio>? Why don’t we need a <source> element for <video> tags?
If you use the src attribute to link the audio file to the <audio> element, it will most probably work. However, not all browsers support the same audio file type. The <source> element is used to add multiple sources E.g. a .mp3 version and a .webm version. This will make your <audio> element accessible from all browsers
The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element. It is an empty element, meaning that it has no content and does not have a closing tag. It is commonly used to offer the same media content in multiple file formats in order to provide compatibility with a broad range of browsers given their differing support for image file formats and media file formats. - MDN
Hey, sorry i’m new to this whole form thing, so I don’t actually know if this is where I should post this question… but I was on the semantic HTML lesson in codecademy, in the video element portion and I tried to place the autoplay attribute and tried refreshing the page but the dog video never played by itself.
I wouldn’t say it was deprecated, just should be used when necessary. If you want to display an image, use the <img /> element. If you want to display a video, use the <video /> element. If the media you want to embed doesn’t have a specific tag for it, then you could use the <embed /> element