HTML tags

Do you type you HTML the first way or the second?


  • Total voters
    25

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
When you write an HTML code, do you type the tags first, and then the content second, or do you type the opening tag, the content, and then the closing tag?

EG:
HTML:
<[/h1>
//then:
</h1>
//then:
[up key][up key]welcome!

or:

HTML:
<h1>
//then:
welcome!
//then:
</h1>

I got the poll completely wrong. Lets say 'yes' means first and 'no' means second.
 
Last edited:

Dan

Active Member
Messages
1,258
Reaction score
0
Points
36
I do it the first way otherwise I forget to close the tags and they all go wrong!!!!!!!!!!!!
 

BentFX

New Member
Messages
116
Reaction score
0
Points
0
I type <open>content</close> in that order
 
Last edited:

dwd2000

Member
Messages
163
Reaction score
0
Points
16
I use a WYSIWYG editor. Kompozer, at the moment. I usually copy and paste extra code as needed. I don't usually write my own code, unless I really have to.
 

Xemnas

New Member
Messages
812
Reaction score
0
Points
0
I type the tags first, it helps to know how things are going to be laid out on a page, you know?
 

Mitch

New Member
Messages
908
Reaction score
0
Points
0
The second,
first tag open, text, then tag close
<center> {TEXT} </center>
 

xenonsoft

New Member
Messages
7
Reaction score
0
Points
0
I usually open tag, insert content then close the tag so i dont forget to do it all.

The software that I normally would use is either Dreamweaver or Visual Web Developer Express 2008.
 

dirtracer36

New Member
Messages
130
Reaction score
0
Points
0
I would have to say most of the time I write the tags first then the content. Other times I use HTML-kit to build pages.
 

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
I just got notepad2 and told it to close the tags for me...
 

Calipe

New Member
Messages
151
Reaction score
0
Points
0
Writing the tags first helps you to "visualize" your website better. It also helps on getting your code validated, as unclosed tags can will cause errors. Remember to ALWAYS close your tags.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
I write it <OPEN>Content</CLOSE>, but I use Dreamweaver which automatically closes the tags when I type </ so that helps.
 

Aruskano

New Member
Messages
9
Reaction score
0
Points
0
Basically it depends on the tag. Of course I write the body-tag before the content, but I write the a-tag in the way 2 [open-text-close].
So, I use the way 1 to big tags [html,body,div,p] and the way 2 to smaller ones.
Usually I'm ultra focused while writting so I don't forget to close my tags.
 
Top