So I am building a website and my header menu looks like this:
I would like to put that code into another file and be able to load it using only one line.
For example: Let's say I saved that code a file called hmenu.css (or whatever i should be using)
Can I load it using something like this ?
<link rel="stylesheet" href="hmenu.css" type="text/css"/>
How should this be done ? Any help or tips is greatly appreciated.
Thank you
Code:
<ul class="hmenu">
<a href="./index.html" class="active">Home</a>
<a href="./guides_index.html">Guides</a>
<ul><a href="./guides/make-windows7-faster.html">Windows 7</a>
<a href="./guides/make-linux-faster.html">Linux</a>
<a href="./programs_index.html">Programs</a>
</ul>
I would like to put that code into another file and be able to load it using only one line.
For example: Let's say I saved that code a file called hmenu.css (or whatever i should be using)
Can I load it using something like this ?
<link rel="stylesheet" href="hmenu.css" type="text/css"/>
How should this be done ? Any help or tips is greatly appreciated.
Thank you