Log In · Register

 
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
 
 
Start new topic
Replies
fixtatik
post Jul 30 2009, 05:03 PM
Post #2


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.
 

Posts in this topic
emberfly   Tag, Html, CSS Questions   Jul 30 2009, 04:20 PM
tcunningham   He explained each one, in pretty good detail below...   Jul 30 2009, 04:23 PM
emberfly   Oh. Yes, I know he wrote stuff under each one, but...   Jul 30 2009, 04:24 PM
tcunningham   summary: there's a time and place for everythi...   Jul 30 2009, 04:29 PM
emberfly   What is this "validation" you speak of?   Jul 30 2009, 04:30 PM
tcunningham   http://validator.w3.org/   Jul 30 2009, 04:41 PM
emberfly   Thank you, Thomas.   Jul 30 2009, 04:42 PM
fixtatik   Validation is technically a guideline. If a site w...   Jul 30 2009, 05:03 PM
emberfly   I never knew you had to close <br> tags O_o ...   Jul 30 2009, 05:17 PM
emberfly   yes   Jul 30 2009, 05:49 PM
Mike   Topic closed & moved.   Jul 30 2009, 05:50 PM


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