Need up to 30 seconds to load.
hi guys so today I want to show you how
to link two separate HTML files in one
for example so here have homepage and I
have a a contact page and for both of
this there are two HTML files in my
project folder you can see I have
contact HTML and index.html as well as
CSS files and the two files that I have
in my visual studio code I have already
index.html and contact HTML files
created so now as you can see when I I
am currently in my index.html and that's
the home page when they click on the
contact page because it's not linked
nothing happens
this is my second file which is opened
in the browser so that's the contact
page and also when I click on the home
page nothing happens so let's link this
two together and it's very very simple
so I must say when I was just starting
as I a self-taught it took me hours to
actually find out so hopefully my my
video will help you ok so I am in my
first file index.html and all you need
to do let me show you here so I have
contact dot HTML index dot HTML and I
have CSS for styling
all you need to do is say exactly as it
is so for the home page you need to give
the name exactly as what the home page
is for me it's index.html index dot HTML
and then for contact page its contact
that HTML I will save and here you will
see dollar refresh when I click on
contact it changes when I click on home
it does not change because from contact
I'm not linked to to home page so let me
do this now I go to my contact in HTML
and I do adjust the same for home its
index.html and for contact its contact
HTML and then I will save it refresh so
I'm in my contact when I click on home
and now you see they are linked and work
it working very well nicely together
that's simple and so you might have many
more page pages like for example a
portfolio page and your a file might be
called portfolio dot HTML so if you had
another li element here you would simply
call portfolio dot HTML hope it was
helpful if you have any questions let me
know in comments below and don't forget
to subscribe for my weekly coding
tutorials see you next time
I