arturion
11-11-2003, 08:55 PM
I have a couple of questions:
1. I know we can write a message, for example:
document.write('Hello<br>How are you?');
If I want to make it in some more lines, I wirte
document.write('Hello');
document.write('<br>');
document.write('How are you?');
But I want to know if it is possible to use the command "document.write" only once. I have seen in the code of a page, but I can't remember where. The code looked like this
document.write('
Hello
<br>
How are you?
');
or something like that. But it doesn't work. What is the correct form?
2. I know that I can use "p{text-indent:3em}" between the <style> in order to make the first line of each paragraph to move 5 spaces to the rigth. How do I do to make ALL LINES of the paragraph to move to the right?
Thank you.
1. I know we can write a message, for example:
document.write('Hello<br>How are you?');
If I want to make it in some more lines, I wirte
document.write('Hello');
document.write('<br>');
document.write('How are you?');
But I want to know if it is possible to use the command "document.write" only once. I have seen in the code of a page, but I can't remember where. The code looked like this
document.write('
Hello
<br>
How are you?
');
or something like that. But it doesn't work. What is the correct form?
2. I know that I can use "p{text-indent:3em}" between the <style> in order to make the first line of each paragraph to move 5 spaces to the rigth. How do I do to make ALL LINES of the paragraph to move to the right?
Thank you.