The Use of < and > in Web Design

When it comes to programming, the less than (<) and greater than (>) seems to have about the same number of meanings as the word ‘break’. I’m not sure if that is true but I do know there are many meanings. I have compiled a list of meanings and when you might use each one.

<% %> Used for performing in-line code routines
Example: <%=inline expression %>
<%$ %> Used for Evaluating expressions in .Net
Example: <$ AppSettings: Copyright %>
<%:%> New in 4.0. Used for short hand notation for HTML encoded elements
Example: <%: Model.Content%>
<@ %> Used at the top of Page for page directives
Example: <%@ Page Title=””%>
<%= %> Embedded code blocks
Example: <% =GetTime() %>
< …… > Used to handle HTML blocks or ASP.NET Controls
Example: <a href=”>sample’</a>
<%# %> Used for binding data to a control
Example: <%# DataBinder.Eval(Container.DataItem, “Name”)%>
<%– –%> Used for writing server-side comments
Example: <%– Server Side Comment –%>
<!– –> Used for actual comments inside html form
Example: <!– Comment –>

You can see there are many ways to use these symbols. I hope this helps in your programming.

Note: If you can think of any others uses pass them along and I will add them.

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , | Posted under Programming/Coding | RSS 2.0

Author Spotlight

David Bauernschmidt

David Bauernschmidt

I live in the historical triangle of Virginia where I am married with two daughters. I have spent over 13 years working for a Fortune 500 company in the computer area. I started in VB 6.0 and by the time I ended my employment I was supervising a development team where we built many web applications. When my first daughter was born I wanted to spend more time with her so I left and became a programmer analyst for local government as well as launch my own company. Since then I have grown James River Webs into a profitable web design and application company helping small businesses create a big presence on the internet. As an employee I have created web application used by citizens and other companies. I enjoy fly fishing, and spending time with my family. I also enjoy learning new approaches and development tools when it comes to developing applications.

Leave a Reply

Your email address will not be published. Required fields are marked *

× 6 = 36

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>