M
Mina Wassef
Hello Every one..
I have a question about HTML and loading presaved text. Let me explain what
I would like to do:
First:
Assume we have the following code
<HTML>
<BODY>
<P> LINE ONE </P>
</BODY>
</HTML>
This code will simply type the sentence "Line One".
Now, If I want to change the text "LINE ONE" to anything else , such as
"line two", I will have to edit the HTML code and retype the new sentence.
What I would like to do , is have the text saved in any other file, and if I
change the line in that file, the text will automatically change when the
page is displayed.
Lets assume a real life example:
If I have some paragraph in my pages to display my company news (e.g. "we
are offering product YYY for 6.00 dollars") and this line is repeated in so
many pages all over my site. Now, if I would like to change this line I will
have to go in each single page and manually change the HTML code and type
the new line. What I am looking for is to have the HTML code read the line
from a file, and if I change the contents of this file , all the paged will
display the new line automatically.
I have heard that I can do this using CSS file, but I am not sure if it is
applicable or not, bear in mind I am a begginer with HTML.
I hope you guys can help.
I would really appreciate any helping hand
Cheers
MW.
I have a question about HTML and loading presaved text. Let me explain what
I would like to do:
First:
Assume we have the following code
<HTML>
<BODY>
<P> LINE ONE </P>
</BODY>
</HTML>
This code will simply type the sentence "Line One".
Now, If I want to change the text "LINE ONE" to anything else , such as
"line two", I will have to edit the HTML code and retype the new sentence.
What I would like to do , is have the text saved in any other file, and if I
change the line in that file, the text will automatically change when the
page is displayed.
Lets assume a real life example:
If I have some paragraph in my pages to display my company news (e.g. "we
are offering product YYY for 6.00 dollars") and this line is repeated in so
many pages all over my site. Now, if I would like to change this line I will
have to go in each single page and manually change the HTML code and type
the new line. What I am looking for is to have the HTML code read the line
from a file, and if I change the contents of this file , all the paged will
display the new line automatically.
I have heard that I can do this using CSS file, but I am not sure if it is
applicable or not, bear in mind I am a begginer with HTML.
I hope you guys can help.
I would really appreciate any helping hand
Cheers
MW.