HTML Lesson 1: The basic HTML tag

You can create a HTML document using any text editor like Notepad, Wordpad for Windows, or Simple Text on the Mac. There is no need to buy any sophisticated HTML software like Microsoft Frontpage or CoffeeCup HTML editor. However, as your needs progress you may want to consider getting one. But meanwhile, any simple text editor will do just fine.

HTML Tags

HTML tags are web commands written between the angle brackets: “<" and ">“. The text content is contained between two tags – an opening tag and a closing tag. The closing tag has the additional slash symbol “/” added to it.

Example:

<P>some text contained in here.</P>


Tags can have additional attribute to further modify its function.

Example:

<P align=”right” >some text contained in here.</P>


When several tags are used, they are nested within each other. Make sure the tags are not overlapped to ensure proper code interpretation by the browser.

Example:

<P><B>Nesting the tags correctly.</B></P>

<P><B>Nesting the tags in-correctly.</P></B>


Just a note, the HTML tag example above is written in Capitals for clarity sake. The tag can be written in lowercase or uppercase or even a mixture of both. The browser makes no distinction between them. It is your preference to use one or the other or be sloppy and mix them both up.


Related Posts Plugin for WordPress, Blogger...



Leave a Reply

Blue Captcha Image
Refresh

*

Google  Site Search for JanLeow.com


Bookmark and Share

Enter your email address:

RSS Delivered by FeedBurner