Jump to content

Basic HTML Elements


Recommended Posts


* HTML tags are used to mark-up HTML elements

* HTML tags are surrounded by the two characters < and >

* The surrounding characters are called angle brackets

* HTML tags normally come in pairs like and

* The first tag in a pair is the start tag, the second tag is the end tag

* The text between the start and end tags is the element content

* HTML tags are not case sensitive, means the same as


HTML Elements


<title>Title of page</title>
This is my first homepage. [b]This text is bold[/b]

This is an HTML element:

[b]This text is bold[/b]

The HTML element starts with a start tag:

The content of the HTML element is: This text is bold

The HTML element ends with an end tag:


The purpose of the tag is to define an HTML element that should be displayed as bold.


This is also an HTML element:


This is my first homepage. [b]This text is bold[/b]


This HTML element starts with the start tag


, and ends with the end tag




The purpose of the


tag is to define the HTML element that contains the body of the HTML document.



Why do We Use Lowercase Tags?


We have just said that HTML tags are not case sensitive: means the same as . If you surf the Web, you will notice that plenty of web sites use uppercase HTML tags in their source code. We always use lowercase tags. Why?


If you want to follow the latest web standards, you should always use lowercase tags. The World Wide Web Consortium (W3C) recommends lowercase tags in their HTML 4 recommendation, and XHTML (the next generation HTML) demands lowercase tags.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...