EN
HTML - embed site into site (iframe)
0 points
In this article, we would like to show you how to embed a site into a site using HTML.
Quick solution:
xxxxxxxxxx
1
<iframe src="url" title="example-title"></iframe>
In this section, we create an example iframe that embeds our Findings & News site.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<iframe src="https://dirask.com/findings" height="250" width="100%" title="Dirask Findings"></iframe>
5
</body>
6
</html>
An alternative solution to set the iframe's size is to use style="height:200px;width:100%;"
. With this approach you can also style the iframe.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<iframe src="https://dirask.com/findings"
5
style="height:250px; width:90%; box-shadow:10px 10px 8px #888888; border:none;"
6
title="Dirask Findings"></iframe>
7
</body>
8
</html>