The Eventsforce API feed does not send formatted text, but sometimes the format of the text is important. What can you do to make sure the formatting stays in transit to the app or another system? If you format using HTML, your formatting will remain even when your content moves from place to place.
To use HTML, you will create an opening tag and a closing tag to surround the text you're modifying. You're telling the change where to start and where to finish. All HTML tags are contained within the greater than/less than carrots, like this:
<tag>
To close a tag (that is, tell the text modification where to end), you'll add a slash to denote that it's ending, like this:
</tag>
Now, let's look at how you'd use a real tag to change something.
The tag <strong>
will make text bold (aka, strong). To make a set of words bold, we will use the <strong>
opening and closing tags to surround the text we want to affect, like this:
In this sentence, some words are <strong>emphasized.</strong>
When the above sentence is read by a browser, it will look like this:
In this sentence, some words are emphasized.
Now that you know the basics, let's list out some tags that may come in handy.
<h1>Header 1</h1>
Header 1
<h2>Header 2</h2>
Header 2
<strong>Bold</strong>
Bold
<i>Italics</i>
Italics
<u>Underline</u>
<br /> Line Break
NOTE: the line break is an exception - it requires no closing tag because it does not surround anything.
<p>Paragraph</p>
Use the paragraph tags to surround an entire paragraph of text, beginning at the beginning and ending where the paragraph ends. A paragraph will generally give you slightly more space than only a line break, but you can also insert line breaks between paragraphs if you want larger spaces.