For example, if you want to show to your readers on ‘How to make bold letters using HTML codes’ then you start demonstrating it by putting the HTML tags or codes in your posts (see below).
<b>Having fun with HTML codes</b> |
After we have written down all the characters in our posts and published them, people will not see the same characters, but instead:
Having fun with HTML codes |
The browser will consider the 'example' tag as a real tag. Therefore, your browser will apply it like any other HTML tags, insttead of showing it to your reader. What we need to do to solve this problem is that we have to make the tags not recognized as tags (by browsers). In order to do that, we need to write the tag mark ups of < and > with entities.
What is entities?, codes which draw certain characters in HTML programming is called entities.
The entity codes for < is < and for > is >
So the proper way of showing it to your reader, you need to write it as (in our post, before publishing it):
<b>Having fun with HTML codes</b>
No comments:
Post a Comment