i don't know what @foreach in asp.net mvc 5 do
<p>I'm a newbie and i don't know what @foreach do.
this is code written by my teacher</p>

<pre><code>@foreach (var item in Model) {
    &lt;tr&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.MaSach)
        &lt;/td&gt;
        &lt;td&gt;
            &lt;img src="~/HinhAnhSP/@Html.DisplayFor(modelItem =&gt; item.AnhBia)" width="100" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem =&gt; item.TenSach)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.DisplayFor(modelItem=&gt; item.GiaBan)
        &lt;/td&gt;
        &lt;td&gt;
            @Html.ActionLink("Details", "Details", new { id = item.MaSach }) |
            @Html.ActionLink("Add to Cart", "Add", "Cart", new { id = item.MaSach }, new {url ="" })
        &lt;/td&gt;
    &lt;/tr&gt;
}
</code></pre>