dorayme said:
[QUOTE="Lionel said:
Which is really why I said to not bother with includes yet. You need to
run before you walk. You already know how to copy and paste, you do not
need to learn this. But you don't know the basics of HTML and CSS,
otherwise you would have employed an HTML unordered list for your
navigation.
I still stand by not doing this. If I get it wrong once then I get it
wrong a dozen times, it's just bad practice. It would be great if html
had some sort of include tag but unless someone comes and points out
that it does, then AFAIK it doesn't.
FYI in my first draft of that web page I did use a <ul>...</ul> and I
did have it repeated 12 times. My lists consistently got out of synch
while I tried to copy and paste making sure I didn't leave a tag hanging
accidentally etc. It was horrible!
If you are having such difficulty with this, how can you be so confident
that you won't have as many difficulties with mastering includes, making
sure the HTML doc has a correct file path to get to the include on the
server, putting the includes on the server, putting in the references to
the includes into each page. This is also a job that requires
repeatition. If you can't cut and paste accurately, then you can run
into trouble here too. There are fiddly little greater than signs,
question marks and so on in include references. All of them have to be
repeated page after page.
In the end, it is actually important that you master not getting the
basics wrong. Cut and paste is basics. Making web sites is fiddly work
and requires a lot of attention to detail. When you get the basics right
(not wrong) and get fed up, then is the time to get more sophisticated.
And no, I can't agree with your maths. (My, how disagreeable I am!).
You personally don't have to repeat anything 12 times if you use Search
and Replace in your text editor, technology which is dead easy to
master. You search for the old menu text and you replace it with new
over a number of pages in a folder. Get it right once and you are good
to go for changes a million times.
Not trying to be mean to you. It is just that it seems so obvious that
you must stop and get rock bottom basics right before looking for fancy.[/QUOTE]
Yeah, many a text editor can do search and replace, but it is unlikely
to do blocks all that well and it is unlikely to open the 12 files all
by itself, what you said doesn't make much sense. Of course I could use
sed or something like that.
I'm not trying to be fancy, I'm trying to be practical and exercise code
reuse. My page is now working with JS, I don't care if any of my target
audience doesn't have JS enabled as this is very unlikely anyway.
Sure I had some poor design stuff in that page (and the others which I'm
yet to fix) but that will improve with time.
I don't agree with your approach so I might leave it at that. Everyone
has a different learning style.
I thank everyone including yourself for the valuable input though
.
Lionel.