Let's say I have some html files "index.html", "learn.html", etc in username.github.io and when I click "index.html" they all are rendered as html.
Now, I have another html in "mythmls/myhtml.html" in the same repository. How to include this html in "learn.html" so that when I click the link it will RENDER the html of "myhthml.html" file not just show the SOURCE CODE?
Attempt1
Inside the username.github.io/learn.html I added the following:
<h2><a name="Learn">Leetcode</h2>
<ul>
<li><a href="https://raw.githubusercontent.com/bhishanpdl/bhishanpdl.github.io/master/leetcode/lc_977.html">lc977</a></li>
</ul>
<br>
When I click this link, it gives me raw html source code, not the rendered version of HTML.
Attempt2
<div>
<iframe src="lc_955.html" name="targetframe" allowTransparency="true" scrolling="yes" frameborder="0" >
</iframe>
</div>
This gives empty box with 404 ERRROR at the top right corner.
I am very new to HTML and this is the file I am trying to edit.
Do we have to create a new tab for each new html files?
Can we create just one tab and put some links there so that when we click that link it will RENDER the html (not show the SOURCE CODE) ?