Question:
HTML code for indentations/multiple spaces/tabs to show up on an HTML document?
Olivia
2008-09-06 09:14:38 UTC
I was trying to post a poem I wrote on a website, and parts of the poem have indented words underneath the lines, between one and three inches into the page. a simple
followed by several spaces doesn't work, and the tab key doesn't work on HTML, so is there any code I could use for my poem to keep its form online?

The regular lines in my poem are fine, but
[it's these lines that don't show up right]
They always show up like
[this]
Instead of
----------------------[this]
^ should be empty space


Any advice? Please and thanks =]
Four answers:
anonymous
2008-09-06 23:38:34 UTC
Yes, the
 tags are easier to use as you can indent or have your text as you want it to appear by putting the text between them.




Or you can use the CSS styling properties if it is just for the first line of a paragraph.



Ron
?
2016-05-28 13:01:27 UTC
Are you also including then placing the text here and adding at the end: Another way to see if what you are doing wrong is to check the source code of another (functioning) website, and copy that. Good luck!
computerguy!
2008-09-06 09:34:08 UTC
Although Text indenting might work, you easiest way would be to put it into a
 section, this will keep all the spaces in it.




Hope that helps!
Angela Q
2008-09-06 09:19:23 UTC
You do it with css text indent property.

http://www.w3schools.com/css/pr_text_text-indent.asp


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...