-1

I found this <%= %> tag in some HTML, I haven't seen this in any tutorials. What is this called?

<div class="lt-toggle-btn" >
        <div class = "row">
            <a class="reflection-questions-title" href="#resources/videos/<%- CONTENTID %>">
                <i class="fa fa-youtube-play"></i>
                <p class="reflection-title col-xs-11 col-sm-11 col-md-11"><%- CONTENTNAME %></p>
            </a>
        </div>
</div>
davidism
  • 121,510
  • 29
  • 395
  • 339
Karias Bolster
  • 955
  • 3
  • 17
  • 31

3 Answers3

1

In ASP.NET, these are called Code Render Blocks. You can check these links for details:

Code Render Blocks and Embedded Code Blocks

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055
0

This is an erb or Embedded RuBy tag. It is widely used in the Ruby on Rails website development platform. More can be found here

Ryan K
  • 3,985
  • 4
  • 39
  • 42
0

That is in ASP, opening and closing tags. It is a different language completely form html

<% is the open and %> closes. with the hyphens, its a comment.

Ryan Knol
  • 304
  • 2
  • 7