WELCOME To STAY-JUNE

 
Hi!! In this blog, you'll find many things about photoshop and design, such as the photoshop tutorials, some tips on photo editing, and a lot more!  
 

Thursday, July 19, 2007

Displaying HTML Code

When you type the html code into the blog post, it will not display the code, but it will function as what the code says, right?

Basically, the right way to display html code is to convert the code to entities.
For example,

'<' becomes '<' '>' becomes '>'
'"' (double quote) becomes '"'
''' (single quote) becomes '''
'&' becomes '&amp;amp;amp;amp;amp;'

But, I think it's hard to remember, so I told you to use the textarea to display the html code in the blog post. (From here Text Area & Scroll Box )

However, I've discovered a tool to change the html code to entities for you, so that you can copy and paste the entities in your post. As you post it, it will appear as the html.

So, it's fast, simple, and your post will look cleaner without the textarea.
Let's try it now.

No comments: