Elements HTML | HTML Tutorial 2

Sabtu, 24 Desember 2011

HTML elements, what it? Well, in Learning HTML ago, you've nyoba make your first HTML page and see how cute. Next you need to know about HTML elements and how to write it. You will need a basic definition is in the process of learning HTML that you did throughout the tutorial here. The importance of following instructions.

Remember these important instructions:

HTML documents are text files that consist of HTML elements. Well, the HTML element that is defined using so-called HTML tags.

The following points will help you remember and understand the sense of HTML tags:

  • HTML tags used to mark (mark-ups) HTML elements
  • HTML tags are in between the two characters <and>
  • Marker characters are called angle brackets
  • HTML tags normally come in pairs like <b> and </ b>
  • The first tag is the opening tag, and the second tag is the 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>

The HTML element starts with an opening tag: <b>

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

The HTML element ends with a closing tag: </ b>

<b> Tag function 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>

The HTML element starts with an opening tag <body>, and ends with a closing tag </ body>

The function of the tag <body> is to define the HTML element that contains the body (contents) 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 as <b>. If you surf the Web, you will notice 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) requires tag in lowercase.

Ok, you've just learning about HTML elements. And mustinya now you've got used to the term tag. If you do not familiarize themselves with this term, because in the process of learning HTML, you must be familiar with word tags.

Next, we will discuss some basic HTML TAG particularly interesting to change the look of paragraphs, headings, etc..

0 komentar:

Posting Komentar

 
© Copyright 2010-2011 web design Web Design.
learning HTML Learning PHP | Published by create PHP | Sport News Blogger.com.