+ 3

How to display HTML tags on page?

When I write text on Notepad++ and after run on browser, I see what I've done on text editor. But if I want to show tags, it is nothing will appears. How to show everything like simple text? "Now I want to show you how should be used HTML tags: <html></html> , <body></body> <p>, <br/> etc. You need too use open tag and after closing tag: <title>My first page</title> " It was example. So how to show everything when I running page?

28th Jun 2020, 3:08 PM
Sigitas S
Sigitas S - avatar
30 ответов
+ 24
Use &gt; for > and &lt; for <
29th Jun 2020, 2:31 PM
Lamya😉
Lamya😉 - avatar
+ 9
I think it may be necessary to change all your "<" to "&lt" and ">" to "&gt" in order for them to be printed as you want. So &ltp&gtThis is a p element.&lt/p&gt appears as <p>This is a p element.</p>
28th Jun 2020, 3:12 PM
Russ
Russ - avatar
+ 2
@Martin Taylor @Code Crasher . Thanks so much. So I see you use < in front and > to end. Not very easy , but I need to try ;) I don't know why can not mention you in comment? :( It is very long way. But it is works. I did same thing easier with <xmp></xmp> https://code.sololearn.com/WBI3S7seaTGf/#html @Code Crasher, I used your example.
28th Jun 2020, 5:01 PM
Sigitas S
Sigitas S - avatar
+ 2
@Code Crasher. On my Android phone works (worked before). Now I'm try on computer mention...nothing :( I made another one, and works for me: https://code.sololearn.com/WlCAv8BAOlrm/#html
28th Jun 2020, 5:58 PM
Sigitas S
Sigitas S - avatar
+ 2
You can use <xmp> </xmp> for this. Actually, this tag is already deprecated, but still working.
28th Jun 2020, 7:18 PM
Artem 🇺🇦
Artem 🇺🇦 - avatar
+ 2
Use &lt text &gt
29th Jun 2020, 1:13 PM
Sali65
Sali65 - avatar
+ 1
Code Crasher This is in fact the first time I am hearing(actually seeing) about HTML3. I naturally assumed it started from 4 lol. You must have been coding for long.
28th Jun 2020, 8:21 PM
Ore
Ore - avatar
+ 1
I don't know what that means😒 but it seems like a great achievement👍
28th Jun 2020, 8:48 PM
Ore
Ore - avatar
+ 1
Code Crasher About the growth of the internet I can't agree more. My generation are really lucky I think.
28th Jun 2020, 9:11 PM
Ore
Ore - avatar
+ 1
"<",">"
28th Jun 2020, 10:50 PM
Leeroy Chimuka
+ 1
Keep the html tags in between<p> </p> tags
30th Jun 2020, 4:15 AM
ganisetti manjunath
ganisetti manjunath - avatar
0
@Russ I tried to do many things. I know one method <xmp> </xmp> put everything inside these elements, but on page shows not a nice and bit messy. And not how I want to see it. So how Sololearn doing that on our lessons?
28th Jun 2020, 4:09 PM
Sigitas S
Sigitas S - avatar
0
U don't close the last tag
30th Jun 2020, 8:28 AM
Siva Shankar
Siva Shankar - avatar
0
U can use &lt for < and &gt for >
30th Jun 2020, 9:08 AM
Leeroy Chimuka
0
Life with coding s so much interesting and fascinating, you learn how to develop new ways f making the internet and other graphic packages, worth downloading​. Its just a dream cone true for me, as i now k ow how to code very well
30th Jun 2020, 10:32 AM
Anthony Umennabuike
Anthony Umennabuike - avatar
0
Use &gt; and &It;
30th Jun 2020, 1:14 PM
Daniyal
Daniyal - avatar
0
Add your profession immediately below your first and last name using <p> paragraph.
16th Feb 2023, 12:28 PM
Firaol Mengesha Gemeda