Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angle bracket (<) without triggering html code [duplicate]

Tags:

html

Possible Duplicate:
printing “<html>” using html

How can I put the < symbol literally into html text without invoking html stuffs.

like image 589
user1950278 Avatar asked Feb 02 '13 06:02

user1950278


People also ask

How do you make an angle bracket in HTML?

How can I put the < symbol literally into html text without invoking html stuffs. The character “<” is the LESS THAN character. If you actually meant an angle bracket, then you can use U+2329 LEFT-POINTING ANGLE BRACKET “〈” or some similar character as such (with many caveats).

How do you use brackets in HTML?

To open the body of an HTML first open the HTML document, to do so write an open bracket, then html, the close the bracket. Next press enter. Type another open bracket, then type the word body, then type a closed bracket.

What is angle brackets in HTML?

Angle brackets are commonly used to enclose a code of some type. For example, HTML tags and PageMaker tags are enclosed in angle brackets. They are also used on chat channels and in chat rooms to frame a comment or expression, such as <groan!> or <g>, which is short for <grin>.


2 Answers

Use "&lt;". Similarly, you can use "&gt;" for >, or "&amp;" for &.

These are called HTML "entities". You can learn more about them here

like image 78
paulsm4 Avatar answered Oct 15 '22 12:10

paulsm4


Use &lt; for <.

Or &gt; for >.

like image 32
Smuuf Avatar answered Oct 15 '22 13:10

Smuuf