+ 1

How to show image/img or video link?

Video/audio/image how to show link?

7th Apr 2021, 1:27 PM
Dark developer {<[Čõđę Ŵåř]>}🇪🇹
Dark developer {<[Čõđę Ŵåř]>}🇪🇹 - avatar
4 odpowiedzi
+ 3
Hello there! :) Could you please clarify your question? Thank you :) If you're asking how to insert a file (img, video, audio) in a html document, here some tutorials: https://code.sololearn.com/WT3661NHpV3B/?ref=app https://code.sololearn.com/WW6t4B73kJVz/?ref=app
7th Apr 2021, 1:36 PM
Matthew
Matthew - avatar
+ 4
How to host/upload an image (IMGBB way) /by Farhanaz/ https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
7th Apr 2021, 1:42 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 3
If you have some HTML video/audio/img/some other tag and want to display its source, you can to this: 1. Directly write the link in HTML source code (whether as link or not). 2. You can place it with CSS using ::before pseudoclass (element::before) and content style property (content: attr(src); /* you can add some text before and after using concatenation (done with space between objects (?) in CSS content property) */)(just as text). See https://www.w3schools.com/cssref/pr_gen_content.asp for more information about it. 3. With JavaScript. If you have the reference to some element (here targetelem) and the tag from which you need the link (here mediaelem), use `targetelem.innerHTML = mediaelem.src;` (can replace innerHTML with innerText as it inserts text and not HTML markup) for text and `targetelem.innerHTML = "<a>" + mediaelem.src + "</a>";`.
7th Apr 2021, 1:47 PM
#0009e7 [get]
#0009e7 [get] - avatar
+ 2
Thanks 👍 exactly!!
7th Apr 2021, 1:43 PM
Dark developer {<[Čõđę Ŵåř]>}🇪🇹
Dark developer {<[Čõđę Ŵåř]>}🇪🇹 - avatar