## 6.2.1 GSP Basics

In the next view sections we'll go through the basics of GSP and what is available to you. First off let's cover some basic syntax that users of JSP and ASP should be familiar with.

GSP supports the usage of `<% %>` blocks to embed Groovy code (again this is discouraged):

    <html>
       <body>
         <% out << "Hello GSP!" %>
       </body>
    </html>

As well as this syntax you can also use the `<%= %>` syntax to output values:

    <html>
       <body>
         <%="Hello GSP!" %>
       </body>
    </html>

GSP also supports JSP-style server-side comments as the following example demonstrates:

    <html>
       <body>
    	 <%-- This is my comment --%>
         <%="Hello GSP!" %>
       </body>
    </html>