Well, you can create multiple web pages each in isolation. Then, you can use the <a> tag to create links. Without a server, I think what your teacher wants is to use relative paths. So, if you have an index.html and a history.html, or whatever your other page will be, you can create an HTML element Like <a href="history.html">History Page</a> on your main page. When you open it locally in your browser, that link should work as long as your HTML files are stored in the same folder.
EDIT: looks like you got this answer several times!
Oh my teacher said it had to be more than one page while using just html and CSS
Well, you can create multiple web pages each in isolation. Then, you can use the
<a>
tag to create links. Without a server, I think what your teacher wants is to use relative paths. So, if you have anindex.html
and ahistory.html
, or whatever your other page will be, you can create an HTML element Like<a href="history.html">History Page</a>
on your main page. When you open it locally in your browser, that link should work as long as your HTML files are stored in the same folder.EDIT: looks like you got this answer several times!
Alright this looks simple enough. I'll get to work on it. Thanks a lot!