Home | Free Software | Wordpress
I've received several questions relating to yesterday's tutorial, "Your First PHP Page" in regards to how I was able to include HTML code in my post. For example, if you want to make a word bold, you type <strong>bold</strong>. So the question is, how then did I write <strong>bold</strong> without the word becoming bold? The other questions I've been asked is, "How the heck did you do that indentation?!". First, I'd just like to say it's really interesting how you can write a hot topic accidentally! My post yesterday was geared at providing a very basic PHP tutorial, but ended up stirring interest amongst bloggers who would like to have more control over the formatting of their posts! Please keep the feedback coming as I am very eager to answer any and all such questions! The magic behind yesterday's post is actually very simple. Writing a post in Wordpress is a simplified way of inserting a few paragraphs of HTML formatted text into a web page. When you make a word bold or add a link, the text is surrounded by tags which will tell the browser how to format it's appearance on the screen. HTML tags always begin with "<", so as soon the browser encounters this symbol, it will check to see if it is a valid HTML tag, and if so, take the appropriate actions. If you actually just want to display the "<" symbol on screen and have the browser ignore the possibility that it could be HTML code, then you need to instead write the ASCII entity name. I know many of you just grumbled and felt discouraged at the mention of ASCII entity names, but don't worry I promise it really is very easy! Basically, all you need to know is that some characters have an ASCII entity name which you can type in your posts to display the character. For example, the ASCII character name for < is:
Article Source: http://www.writerdatabase.com
www.webdevnotes.com/formatting-text-in-wordpress/
Please Rate this Article
5 out of 54 out of 53 out of 52 out of 51 out of 5
Not yet Rated