Page 1 of 1

Insert same meta tag in mulitple files

Posted: Fri Apr 05, 2002 2:25 pm
by Tim
Hi,
I am new to textpad this being the second time I have tried to use it.
What I am trying to do is add a new meta tag to each page of a web site. Does anyone know of an easy way of doing this??
I thought I could do a find in files for an existing tag then do a replace with that tag & the new one included.
Any suggestions please. I don't fancy doing having to do a paste of this tag to every page.

Re: Insert same meta tag in mulitple files

Posted: Fri Apr 05, 2002 3:00 pm
by Andreas
Open all the files you want to add the meta element

Then replace the opening head tag (<head> - I hope the <> show up correctly) with the opening head tag plus your new meta element.

(as meta elements have to appear inside the head element this will place the meta element in the correct place - the order of meta elements is irrelevant in HTML).

Re: Insert same meta tag in mulitple files

Posted: Fri Apr 05, 2002 4:06 pm
by Tim
Thanks for the quick reply Andreas.