HTML Codes

SimonDoom

Kink Lord
Joined
Apr 9, 2015
Posts
19,160
Either as a result of oncoming dementia or, more likely, chronic ineptness, I'm unable to find a list here of the html code formats used to format story text in italics, bold, etc. Is there an existing sticky thread or resource on this that one can go to without hunting for thread posts? I think there is but I cannot find it.
 
I needed help with this too, and while I'm no coding expert, the advice I was given recently was to use '<' and '/>' around the letters B (bold), I (italics), and U (underline).

I used the same method as the forums here use, but they use the brackets ( '[' ']' ) rather than the arrows.

I still don't get it, but the arrows work for the stories.
 
In general, HTML uses the carats < > while BBCode uses the brackets [ ].

HTML is used in web pages but is being deprecated in many websites and new layouts in favor of CSS.

BBCode is used in forums and discussion boards like this, but is being deprecated on some newer boards due to some security exploit risks.

With that in mind, wrap the symbols above around the following letters for the result:

I Italics
B Bold
U Underline.
 
I've also used "quote" and "br" inside the angle brackets "<>" (or square brackets "[]").

"quote" gets interpreted as italics here, but "br" is great for the few occasions it's necessary -- at least once in almost all of my chapters.

I understand that one can also use "p" (for "paragraph") inside the brackets, but I've never used it and it may not be necessary with site formatting conventions (blank line between paragraphs, no indents) the way they are: Submitting Literotica for Beginners
 
Last edited:
SPECIAL FORMATING
LAUREL:
1.We allow bolds, italics, underlines, blockquotes, and centered text.

2. So to properly format text in a story we should add the following tags:
<b>Bold text</b>
<i>Italic text</i>
<u>Underlined text</u>
<blockquote>Blockquoted text</blockquote>
<div style="margin: auto; text-align: center;">centred text</div>
 
I've also used "quote" and "br" inside the angle brackets "<>" (or square brackets "[]").

"quote" gets interpreted as italics here, but "br" is great for the few occasions it's necessary -- at least once in almost all of my chapters.

I understand that one can also use "p" (for "paragraph") inside the brackets, but I've never used it and it may not be necessary with site formatting conventions (blank line between paragraphs, no indents) the way they are: Submitting Literotica for Beginners

That does the trick. I was looking for a resource I could consult inconspicuously without having to reveal how ignorant/forgetful I am again and again.
 
Remember that not all reader devices read codes, and when they go wrong (operator error, usually) they can make a real mess of your presentation.

Are you going over to the dark side, Simon, with a light sabre that changes pretty colours and flashing lights? It's the words, mate, just the words :).

Suzie sighed in her sleep and rolled over. "Shwoom shwoom..." she whispered, and fell back into a dream.
 
Remember that not all reader devices read codes, and when they go wrong (operator error, usually) they can make a real mess of your presentation.

Are you going over to the dark side, Simon, with a light sabre that changes pretty colours and flashing lights? It's the words, mate, just the words :).

Suzie sighed in her sleep and rolled over. "Shwoom shwoom..." she whispered, and fell back into a dream.

Oh no. I'm resistant to specially formatted text, and I intend to remain that way. You will rarely find italics or boldface in my stories. That won't change.

But I AM considering adding short intros to my stories, possibly in italics, where appropriate. An example is at the beginning of my 750 word story, to remind the reader that the story must be no more than 750 words.
 
Oh no. I'm resistant to specially formatted text, and I intend to remain that way. You will rarely find italics or boldface in my stories. That won't change.

But I AM considering adding short intros to my stories, possibly in italics, where appropriate. An example is at the beginning of my 750 word story, to remind the reader that the story must be no more than 750 words.
I'll occasionally add:

Author's Note: Blah blah blah

* * * *

Story starts...

I think Laurel's changed it to italics once or twice, but the * * * * does the trick.
 
<blockquote>Blockquoted text</blockquote>
<div style="margin: auto; text-align: center;">centred text</div>

I might have to try "blockquote" in upcoming writing since "quote" doesn't work properly (equating to italics) here even though it does elsewhere.

Thanks!
 
Last edited:
Remember that not all reader devices read codes, and when they go wrong (operator error, usually) they can make a real mess of your presentation.

I think the HTML codes get removed during the posting process, replaced by the formatted text: bold, italic, etc.

Compiled rather than interpreted, in computerese. You shouldn't have to worry about the "reader devices," just make sure the text looks right in Preview mode before submitting, keeping in mind that even Preview Mode isn't an exact representation of how the text will appear when published.
 
SPECIAL FORMATING
LAUREL:
1.We allow bolds, italics, underlines, blockquotes, and centered text.

2. So to properly format text in a story we should add the following tags:
<b>Bold text</b>
<i>Italic text</i>
<u>Underlined text</u>
<blockquote>Blockquoted text</blockquote>
<div style="margin: auto; text-align: center;">centred text</div>

Actually, you have to use...

<center> text </center>

The <div></div> tags will be flagged.
 
I think the HTML codes get removed during the posting process, replaced by the formatted text: bold, italic, etc.

Compiled rather than interpreted, in computerese. You shouldn't have to worry about the "reader devices," just make sure the text looks right in Preview mode before submitting, keeping in mind that even Preview Mode isn't an exact representation of how the text will appear when published.
The point about reader devices is that vast numbers of readers don't see anything other than plain text, so if you're signifying something subtle or essential with italics or whatever, those readers will never know - your use of those signifiers doesn't work for those readers. Words tell stories, not italics or bold or pretty colours.
 
Currently the Lit App ignores formatting. In fact it sometime ignores it so good that the stuff being formatted gets deleted also if your not careful.

This is how all my stories start. I do bold the Chapter headings. And the reason for no space between the title and the next line is that the conversion of the <center> tag to the <div> tag puts in the two line feeds.

<b>Copyright</b> © <i>2020 - This is an original work by Zeb Carter and is protected under copyright by U.S. copyright law. It is only submitted at Literotica.Com and any submission to any other site has not been authorized by the Author.</i>

<b>Author's Note</b>: This story is about a husband who wants to share his wife with others. You have been warned.


<center><b>Turning Out Susan - Pt. 04</b></center>
<b>Chapter 43</b>


Pulling away, Mark looked into Susan's beautiful eyes. Susan smiled at her handsome husband looking back.

This is what it looks like...

Copyright © 2020 - This is an original work by Zeb Carter and is protected under copyright by U.S. copyright law. It is only submitted at Literotica.Com and any submission to any other site has not been authorized by the Author.

Author's Note: This story is about a husband who wants to share his wife with others. You have been warned.


Turning Out Susan - Pt. 04


Chapter 43


Pulling away, Mark looked into Susan's beautiful eyes. Susan smiled at her handsome husband looking into his eyes.
 
Actually, you have to use...

<center> text </center>

If you've used "center" and "blockquote" HTML tags successfully in one of your submissions here, it would seem worthwhile as a resource to all if you were to add a comment to the Submitting Literotica for Beginners article I linked earlier, just to keep everything in one place.

I just crafted such a comment (titled "Two more codes: blockquote and center"), but since I can't vouch for these two codes, having never tried using either, I won't submit that comment.
 
Last edited:
The point about reader devices is that vast numbers of readers don't see anything other than plain text, so if you're signifying something subtle or essential with italics or whatever, those readers will never know - your use of those signifiers doesn't work for those readers. Words tell stories, not italics or bold or pretty colours.

Heh. Here's one of your stories where you do exactly the thing you say no one (else) should: italics at the top of the chapter.

I use bold for chapter titles, italics for some quotes and author notes at the beginning and end of some chapters, underlines when citing the name of other works, "* * *" to separate sections of a chapter, and "br" tags between lines of such things as poetry or song lyrics. This is usual practice.

I also use bold and italic in the text of some pieces, not a lot but occasionally. If their lack throws any reader, it would surprise me. I use them to emphasize certain words, but a lack of emphasis isn't going to kill the piece. It's not like I'm putting together a slideshow, after all.

"Pretty colours"? Is that even possible here or are you just exaggerating for (obviously misplaced) effect?

I will try using the "blockquote" tag in future when citing text from other works such as song lyrics, just to see if it might be an improvement to the "br" tag I use now in order to avoid blank lines in the cited text, which didn't include blank lines when it was written and shouldn't now.
 
I will try using the "blockquote" tag in future when citing text from other works such as song lyrics, just to see if it might be an improvement to the "br" tag I use now in order to avoid blank lines in the cited text, which didn't include blank lines when it was written and shouldn't now.
If you click on "My European Summer Vacation" in my sig and then search for "four-loaf", you can see a blockquote. I could swear that LitE indented the blockquote when I published the story. Now, it doesn't look any different from using the "br" tag.
 
If you click on "My European Summer Vacation" in my sig and then search for "four-loaf", you can see a blockquote. I could swear that LitE indented the blockquote when I published the story. Now, it doesn't look any different from using the "br" tag.

It looks indented to me. Maybe the client? I use Firefox.

Indented citations would've helped a lot of the stuff I've posted while using the (unimplemented here) "quote" tag. For something like chapter 6 of Crossings, where I excerpt the hell out of all kinds of crazy-wonderful writers (von Humboldt, Steinbeck, Ricketts, Darwin, and Sagan, from memory) IN ADDITION to four songs, yeah, that would've been nice. "Blockquote" it is, for me even if not for all, in future.

BOLD just for you, eb. Is it necessary? You tell.
 
Last edited:
I'm going to push back on this again. Vast? The only thing I know of that doesn't display simple HTML formatting is the Lit app, which is in no way, shape, or form a dominant means of accessing Lit.

The italics show up when reading on my phone, tablet, Ipad, and any other device I've ever used. It only stands to reason, since those devices use web browsers to access the website, and the very function of a web browser is to interpret HTML code.

The point about reader devices is that vast numbers of readers don't see anything other than plain text, so if you're signifying something subtle or essential with italics or whatever, those readers will never know - your use of those signifiers doesn't work for those readers. Words tell stories, not italics or bold or pretty colours.
 
Heh. Here's one of your stories where you do exactly the thing you say no one (else) should: italics at the top of the chapter.
In the preamble, yes, but note the age of the story.

I've had spectacular html cock-ups in stories since, so for the last couple of years have only ever used italics in an Author's Note, never in a story's text. Also, Laurel has on occasion changed a preamble to italics when I haven't use html at all.
 
Also, careful with special characters: … — and – are allowed for hellipsis (...) and dashes, but once I tried to use right and left quotation marks and my story was rejected because of them. I don't know why...
 
If you've used "center" and "blockquote" HTML tags successfully in one of your submissions here, it would seem worthwhile as a resource to all if you were to add a comment to the Submitting Literotica for Beginners article I linked earlier, just to keep everything in one place.

I just crafted such a comment (titled "Two more codes: blockquote and center"), but since I can't vouch for these two codes, having never tried using either, I won't submit that comment.

Every one of my stories uses <center></center>. Haven't had a problem since I started submitting here in 2000somthing.

As for blockquote I have used it in the past. I tried to use it just recently and the preview didn't pick it up. It just ignored it.
 
Last edited:
And all of the HTML tags will be going away soon. Manu mentioned in a post in the New Lit Story Page that they were going to the [] type codes for formatting. They are all basically the same though.
 
Actually, you have to use...

<center> text </center>

The <div></div> tags will be flagged.

Zeb, I'm glad you noted the change. Personally, I have never used any special formatting. I just keep a handy little file of clever stuff I read here from time to time.

And now you tell us it's all changing anyway ;)
 
Back
Top