Thursday, August 4, 2011

Elements of HTML

HTML elements, what is that? Well, in a tutorial learning HTML ago, you've tried to make your first HTML page and understand how to create. Next you have to understand about HTML elements and how to write it. You will need a basic definition is in the process of learning HTML that you do all the tutorials here. Following the instructions importance.
Remember these important guidelines:
 



HTML documents are text files consisting of HTML elements. Well, the HTML element that is defined using the so-called HTML tags.
The following points will help you remember and understand definition HTML tags:

  • HTML tags used to mark (a mark-up) HTML elements
  • HTML tags are in the two characters <and>
  • Marker characters are called angle brackets
  • HTML tags are usually always in pairs like <b> and </ b>
  • The first tag is the opening tag, and the second tag is a closing tag
  • The text between these two tags is the element content
  • HTML tags are not case sensitive, <b> have the same meaning as <B>

HTML Elements

 

Remember the HTML example from the previous page:


<html>
<head>
<title> Title Page </ title>
</ Head>
<body>
This is my first page. <b> text is bold </ b>
</ Body>
</ Html> 
 
This is an HTML element:
<b> text is bold </ b> 
This HTML element starts with the opening tag: <b>
The contents of the HTML element is: This text is bold
The HTML element ends with a closing tag: </ b>
The function tag <b> is to define an HTML element that should be shown in bold.
Well, this is also an HTML element:


<body>
This is my first page. <b> text is bold </ b>
</ Body> 
 
This HTML element starts with the tag <body>, and ends with the closing </ body>
The function of the tag <body> is to define the HTML element that contains the body (content) of an HTML document.
Why do we use the tags in lowercase?
We have just said that HTML tags are not case sensitive: <B> have the same meaning with <b>.  If you surf the Web, you'll see that many web sites use uppercase HTML tags in the source code. But in the example above, we use lowercase letters. Know why?
If you follow the latest web standards, you should always use lowercase tags. World Wide Web Consortium (W3C) recommends the use of lowercase letters in their HTML 4 recommendation, and XHTML (the next generation of HTML) require a tag in lowercase.
Ok, you've just learned about HTML elements. And must now you've got used to the term tag. If you do not familiarize yourself with this term, because in the process of learning HTML, you must be familiar with word tags.
Next, we will discuss about some basic HTML TAG especially interesting to change the look of paragraphs, headings, etc..

0 comments:

Post a Comment