Log In · Register

 
 
Closed TopicStart new topic
Tag, Html, CSS Questions, some things confuse me
emberfly
post Jul 30 2009, 04:20 PM
Post #1


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



ok.. I've always been taught to use
CODE
<BR>


but ever since I started making Xanga layouts, I've seen some people use

CODE
<BR />


Wthell is the point in that? Why not just use the first one?


Also, I was reading this:
http://line25.com/articles/10-html-tag-cri...shouldnt-commit

and I have some questions.

........




on all of them actually blink.gif

except the last one. That one is obvious.

thumbsup.gif
 
synapse
post Jul 30 2009, 04:23 PM
Post #2


Live long and prosper.
********

Group: Staff Alumni
Posts: 10,142
Joined: Apr 2007
Member No: 514,926



He explained each one, in pretty good detail below the examples. You should use <br /> in XHTML, becuase it needs to have the closing tag, in HTML, there is no need for <br> to have a closing tag. It's just the difference between HTML, and XHTML.
 
emberfly
post Jul 30 2009, 04:24 PM
Post #3


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



Oh. Yes, I know he wrote stuff under each one, but he didn't explain WHY we should be doing this :P or why it's better than the other way.
 
synapse
post Jul 30 2009, 04:29 PM
Post #4


Live long and prosper.
********

Group: Staff Alumni
Posts: 10,142
Joined: Apr 2007
Member No: 514,926



summary: there's a time and place for everything. You're a grammar freak, so think of it as punctuation. coding can be the same way, there is a certain way that the markup should be written, you can't go willy-nilly putting whatever tags you want, and how you want them. It won't pass validation if you do that.
 
emberfly
post Jul 30 2009, 04:30 PM
Post #5


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



What is this "validation" you speak of? ohmy.gif
 
synapse
post Jul 30 2009, 04:41 PM
Post #6


Live long and prosper.
********

Group: Staff Alumni
Posts: 10,142
Joined: Apr 2007
Member No: 514,926



http://validator.w3.org/ wink.gif
 
emberfly
post Jul 30 2009, 04:42 PM
Post #7


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



Thank you, Thomas. biggrin.gif
 
fixtatik
post Jul 30 2009, 05:03 PM
Post #8


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



Validation is technically a guideline. If a site works, it works. You might have some custom tags that won't pass W3C validation, but they'll work because you defined them on your own. Take a look at Myspace, for example. The site works, even with an average of over 100 errors on every page, some going beyond 300 errors.

The big thing to note on the difference between HTML and XHTML is the case-level. HTML tags can be either uppercase (<HTML>) or lowercase (<html>), but XHTML must always be lowercase.

The slash in <br /> is because it's an empty element, like <img /> or <link /> or <input />. Without the slash, it's like using <div> but never using </div>. That said, you can also use <br></br> or <img></img> and it will still validate.
 
emberfly
post Jul 30 2009, 05:17 PM
Post #9


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



I never knew you had to close <br> tags O_o (or image tags)

oddddddd
 
emberfly
post Jul 30 2009, 05:49 PM
Post #10


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



yes
 
Mickey
post Jul 30 2009, 05:50 PM
Post #11


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Topic closed & moved.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: