Tag Archive | "HTML"

Less Than and Greater Than Signs in HTML

Monday, July 6, 2009

0 Comments

In HTML, you can not use the less than or greater than signs. You must use a special syntax to represent these reserved characters in HTML. These symbols are written as Character Entities: The less than sign(<):   &lt; The greater than sign(>):   &gt; Other Common Reserved Characters and their Character Entities: The non breaking space( ):   &nbsp; The [...]

Continue reading...

Using Tabs in a WordPress Post

Thursday, July 2, 2009

0 Comments

Here is an example of using tab characters in a blog post. To get this: Column1 Column2 A Apple B Banana C Coconut You can copy and paste this: <pre> Column1 &#09; Column2 A &#09; Apple B &#09; Banana C &#09; Coconut </pre> The trick to this is using the ‘<pre>’ tag and the html entity code for tab: ‘&#09;’. Another option is to use html table tags however I find this [...]

Continue reading...

NoWrap in ASP.Net

Thursday, June 25, 2009

0 Comments

If you want your table column to not wrap in ASP.Net, you can use the NoWrap property in the tag like so: <td nowrap="nowrap"> content </td> This makes the code xhtml compliant and prevents warnings in the source view of designer in Visual Studio. Normally you could just specify a nowrap attribute by itself in plain html. [...]

Continue reading...

Taking Shortcuts with Internal Style Sheets

Sunday, March 22, 2009

0 Comments

As simple as it is, I can never remember the syntax for defining a block of css within html. It is of course better practice to put your css in a seperate file and reference it. However, here is sample snippet to define internal style(s): PLAIN TEXT HTML: <style type="text/css"> body {color: blue} a {color: blue; font-weight:bold;} #id_comment {width: 100px;} </style> And [...]

Continue reading...