Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include '<' as text between html tags?

Tags:

html

How can I achieve something simple as this in HTML ?

<a href="#"><< Back to Main Page</a>
like image 704
Zo Has Avatar asked Nov 29 '22 17:11

Zo Has


2 Answers

You need to HTML encode it:

<a href="#">&lt;&lt; Back to Main Page</a>
like image 141
Petar Ivanov Avatar answered Dec 01 '22 07:12

Petar Ivanov


<a href="#">&lt;&lt; Back to Main Page</a>
like image 40
Royi Namir Avatar answered Dec 01 '22 07:12

Royi Namir