Manipulate soundcloud iframe widget - html

I'm loading soundcloud into my website using iframes. Is it possible to edit the style of the soundcloud iframe. Example. Set a class of the iframe to
visibility : hidden
Or is there another way to manipulate this iframe.

Your iframe is independent of the soundcloud api. You can style you iframe anyway you want e.g check here. You can basically style the iframe inline using the style attribute. If you want to use CSS stylesheet you need to import it into the page using < link > etc.

Related

Crop webpage(url) content inside an iframe

I have a requirement to embed an url inside iframe, which fits inside a lightning component. I would like to request you all to help me with an approach, where webpage contents can be disabled/cropped so only required consents of page can be viewed inside my iframe. Display: none works, when i use it on webpage using inspect element. But it won't support inside iframe,
Used display:none, it did not result in cropping the webpage.

Embedding websites in html

I am trying to figure out the way this website : totallyscience.co embeds their games into the site because I am trying to make a website and I tried directly embedding a website and it isn't the same.
I tried < embed src="example.com" > and it is definitely not the same as the website listed above.
What you need here AND what totallyscience.co uses is an iframe tag
<iframe src="http://www.example.com" title="Embedding another webpage"></iframe>
You can style and position it as you need.
tip : Try to use secure links (https) in iframe. You can use a https link in a page loaded over http but not the other way.
For further reading: https://www.w3schools.com/tags/tag_iframe.ASP

What is the purpose of using the embed tag in html?

I want to know what's embed tag is used for?
from W3SCHOOL :
The tag defines a container for an external resource, such as a web page, a picture, a media player, or a plug-in application
I'm confused about external resource
I mean what is external resource?
The external resource is an address that you receive your media. e.g src of an image, a text HTML, a video, etc. But as said in : https://www.w3schools.com/tags/tag_embed.asp
Suggestion
To display a picture, it is better to use the <img> tag.
To display HTML, it is better to use the <iframe> tag.
To display video or audio, it is better to use the <video> and <audio> tags.

Simply using the <audio></audio> tag and want it to be customized in mobile platforms

How can i customize the css of html audio control (to work on mobile platforms) ? " audio::-webkit-media-controls-panel" it just work in browser i want it to be customized in ionic app.
You could remove the controls for the <audio> element and add manually your own customized controls to control the audio element.
That is removing the controls attribute and adding links and buttons and associate javascript functionality to manage (play/stop/progress...) the audio
Here is some about declaring the <audio>element https://www.w3schools.com/tags/tag_audio.asp
And this answers shows you a little example how to do it https://stackoverflow.com/a/7639343/4635829

How to open a link of external website on the same iframe (embed website)?

I created an iframe to embed an external website, the problem is that, for example, if the user clicks on the Twitter button of the embed website, this action will take the user out of my page, loading Twitter's page, I want to avoid that, I want to load that content on the same iframe, how can I do that? I tried naming the iframe, the parent target, but that didn't work.
Here an example of my code:
<iframe src="http://superluchas.com/" width="100%" height="1000" frameborder="0" scrolling="no"></iframe>
If the third party page targets a specific frame (including _top and _blank) then there is nothing you can do to override that.
Security restrictions prevent you getting access to the DOM.
The twitter button probably has '_blank' as target in <a> tag. You will need to change it to '_self'. More info on target attribute can be found - W3Schools
Also here is an example in which if you click the links inside of IFrame target you will see the page loads into the frame itself, not outside. JSFiddle