How to implement html code to an existing html

Hi there, it seems confuses kind of. I see there is a way to import CSS style online like bootstrap CDN and any CSS library out there. But can i do the same thing with HTML? I want to upload an HTML file in the server and i want to link it with my Github repository, any change in my repository will reflect directly to my HTML file in the server. Is that possible?
4 Replies
Jochem
Jochem3y ago
There's not really a way to use something like a <link> tag like you can with CSS, no. You could however use github pages to host your HTML, and then wherever else you need your HTML file, you could fetch it using javascript and insert the contents like that
penso78
penso78OP3y ago
I'm using Github pages, but my html is hosted on another server which i want to reflect my changes into it. Thank you
Jochem
Jochem3y ago
then you'll have to fetch the HTML from github pages using javascript in the other HTML file you want to update there's probably a better solution to whatever problem you're trying to solve though
penso78
penso78OP3y ago
My problem is actually a little complicated. i can't mention it here. but fetching using js a good idea. thanks
Want results from more Discord servers?
Add your server