0

How I can connect 2 HTML code?

23rd Feb 2017, 5:36 PM
Alberto Sambrotta
Alberto Sambrotta - avatar
8 Respuestas
+ 3
<a href="file.html">Another HTML file</a>
23rd Feb 2017, 5:45 PM
Samuel Šúr
Samuel Šúr - avatar
+ 3
@ Alberto Sambrotta please, send a code :-)
23rd Feb 2017, 5:47 PM
Samuel Šúr
Samuel Šúr - avatar
+ 3
Both HTML files should be in the same directory, or you must write full path of it...href must be written in lowercase
23rd Feb 2017, 5:53 PM
Samuel Šúr
Samuel Šúr - avatar
+ 2
<a href="file.html">Another HTML file</a> is for making a link I think he means that you can see it in the main document. for that you can use an iframe <iframe src="file.html"></iframe> https://www.w3schools.com/TAGs/tag_iframe.asp or you can use php <?php require 'file.html'; ?> and give the main html (index.html) a .php extension instead of php but if you dont know php I recommend the first tactic.
23rd Feb 2017, 7:14 PM
Melvin2204old
Melvin2204old - avatar
0
like what ? can you post the code ?
23rd Feb 2017, 5:43 PM
Ahmed Sayed
Ahmed Sayed - avatar
0
I already used this method but it doesn't work
23rd Feb 2017, 5:47 PM
Alberto Sambrotta
Alberto Sambrotta - avatar
0
wait
23rd Feb 2017, 5:49 PM
Alberto Sambrotta
Alberto Sambrotta - avatar
0
<tr> <td align="center"><i> Madrid</i> </td> <td align="center"> <a HREF="PropostaMadrid.html"> Clicca Qui</a> </td> </tr>
23rd Feb 2017, 5:50 PM
Alberto Sambrotta
Alberto Sambrotta - avatar