Build a Tribute Page- include "<" in text without starting an element

Build a Tribute Page- include "<" in text without starting an element
0

#1

Tell us what’s happening:
I want to include the character < in the text in my list, but when I do it thinks I am opening an element. How do I make this “<” included in the text without creating an element?

Your code so far

     <li> <strong>>Album Title Goes Here<</strong> </li>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-tribute-page


#2

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#3

Maybe you can try this:
\<


#4

Thats what I tried before, but had no luck. I feel like the fix is simple its just hard to google the right thing.


#5

My last ditch try, before I realize I’m not helpful:

https://www.w3schools.com/html/html_entities.asp


#6

so &lt ; (minus that extra space) I’m guessing?


#7

Sweet that worked. I didn’t even realize those existed. Thanks for the help!


#8

Yeah you can use that to actually display reserved characters for HTML AND to display characters that aren’t on your keyboard. For instance, try this in your editor:
&ltrPar;