[Tutorial] Step 2: HTML Elements

View previous topic View next topic Go down

Did this tutorial point you into the right direction?

0% 0% 
[ 0 ]
0% 0% 
[ 0 ]
0% 0% 
[ 0 ]
0% 0% 
[ 0 ]
100% 100% 
[ 4 ]
 
Total Votes : 4

[Tutorial] Step 2: HTML Elements

Post by Psycho_007 on Mon Jan 14, 2008 1:59 am

HTML Elements

HTML documents are text files made up of HTML elements.

HTML elements are defined using HTML tags.

HTML Tags

Code:
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 <b> and </b>
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, <b> means the same as <B>


HTML Elements

Remember the HTML example from the previous page:

Code:
<html>
<head>
<title>Title of page</title>
</head>
<body>
This is my first homepage. <b>This text is bold</b>
</body>
</html>

This is an HTML element:

Code:
<b>This text is bold</b>

Code:
The HTML element starts with a  start tag: <b>
The content of the HTML element is: This text is bold
The HTML element ends with an end tag: </b>

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

This is also an HTML element:

Code:
<body>
This is my first homepage. <b>This text is bold</b>
</body>

Code:
This HTML element starts with the start tag <body>, and ends with the end tag </body>.

Code:
The purpose of the <body> tag is to define the HTML element that contains the body of the HTML document.

Why do We Use Lowercase Tags?

Code:
We have just said that HTML tags are not case sensitive: <B> means the same as <b>. 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.

Credits:

w3schools from where I got this information
monstorconfigs
myself, lol

Psycho_007
Member
Member

Number of posts : 13
MonsterPoint : 0
Respected?! : 0
Registration date : 2007-12-23

Extra info
Fav bot:
game name:
Fav game:

View user profile

Back to top Go down

Re: [Tutorial] Step 2: HTML Elements

Post by Pwnage on Mon Jan 14, 2008 6:12 pm

I voted yes Smile Wink Cool lol!
avatar
Pwnage
Member
Member

Male
Number of posts : 40
Age : 24
Location : Lithuania
MonsterPoint : 0
Respected?! : 0
Registration date : 2008-01-04

Extra info
Fav bot: ETH32
game name: >>>]Pwn4g3[
Fav game: ET

View user profile

Back to top Go down

Re: [Tutorial] Step 2: HTML Elements

Post by Psycho_007 on Mon Jan 14, 2008 9:15 pm

If you want to learn more go to http://w3schools.com/html/html_intro.asp Wink.
Some people just don't want to head over to that website and read the whole tutorial time after time again, so that's why I've put them in here.

Psycho_007
Member
Member

Number of posts : 13
MonsterPoint : 0
Respected?! : 0
Registration date : 2007-12-23

Extra info
Fav bot:
game name:
Fav game:

View user profile

Back to top Go down

Re: [Tutorial] Step 2: HTML Elements

Post by Pwnage on Tue Jan 15, 2008 6:53 pm

Cool :p
avatar
Pwnage
Member
Member

Male
Number of posts : 40
Age : 24
Location : Lithuania
MonsterPoint : 0
Respected?! : 0
Registration date : 2008-01-04

Extra info
Fav bot: ETH32
game name: >>>]Pwn4g3[
Fav game: ET

View user profile

Back to top Go down

Re: [Tutorial] Step 2: HTML Elements

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum