The following is taken from page 56 of Professional ASP.NET MVC 1.0.
When we look at the Details.aspx template more closely, we’ll find that it contains static HTML as well as embedded rendering code. <% %> code nuggets execute code when the view template renders, and <%= %> code nuggets execute the code contained within them and then render the result to the output stream of the template.
The statement intrinsically makes sense, but I was unable to clearly articulate to a team member exactly what it meant. A more detailed explanation of what exactly is occurring would be useful.
An example of usage from later in the chapter:
<% foreach (var dinner in Model) { %>
<li>
<%= Html.Encode(dinner.Title) %>
on
<%= Html.Encode(dinner.EventDate.ToShortDateString())%>
@
<%= Html.Encode(dinner.EventDate.ToShortTimeString())%>
</li>
<% } %>