Tag, Html, CSS Questions, some things confuse me |
![]() ![]() |
Tag, Html, CSS Questions, some things confuse me |
![]()
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 ![]() except the last one. That one is obvious. ![]() |
|
|
![]()
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.
|
|
|
![]()
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.
|
|
|
![]()
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.
|
|
|
![]()
Post
#5
|
|
![]() kthxbai ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,832 Joined: Feb 2008 Member No: 621,203 ![]() |
What is this "validation" you speak of?
![]() |
|
|
![]()
Post
#6
|
|
![]() Live long and prosper. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 10,142 Joined: Apr 2007 Member No: 514,926 ![]() |
|
|
|
![]()
Post
#7
|
|
![]() kthxbai ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,832 Joined: Feb 2008 Member No: 621,203 ![]() |
Thank you, Thomas.
![]() |
|
|
![]()
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. |
|
|
![]()
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 |
|
|
![]()
Post
#10
|
|
![]() kthxbai ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,832 Joined: Feb 2008 Member No: 621,203 ![]() |
yes
|
|
|
![]()
Post
#11
|
|
![]() Treasure Pleasure ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 11,193 Joined: Oct 2005 Member No: 281,127 ![]() |
Topic closed & moved.
|
|
|
![]() ![]() |