View Full Version : Closing Tag Question
RichieBoy67
04-08-2005, 09:57 PM
All set with this problem!! :)
Thanks
filburt1
04-08-2005, 10:12 PM
</div>.
A line break is <br />, an image is <img />, a horizontal rule is <hr />, etc. because they are self-closing tags. For example, <br>text</br> makes no sense.
Also, don't use <center>; it's deprecated. Use <div style="text-align: center">.
RichieBoy67
04-08-2005, 10:20 PM
Well I guess I just learned something major here.... Thank you much!! :) At least I was doing the </div> right but I have to admit that I always use the <center> </center> tags...
I am studying though and I am also starting 2 more courses soon!! Hopefully in a year or so I'll be answering more questions than I ask...lol
Thanks again Filburt!
Oh yeah, one more thing
so you are saying that when ever I want to do a line break I use <br /> ??
Got ya---
and <div style="text-align: center">. goes before what ever I want to center??? How do I close this so the rest of the page does not center???
filburt1
04-08-2005, 10:24 PM
1. You should use semantic HTML and style it with CSS. For example, if you're typing a paragraph, surround it with <p></p> which will add a line break. In reality, you shouldn't use <br /> that often now that I think about it.
2. Close it with </div>.
RichieBoy67
04-08-2005, 10:33 PM
Thanks again Filburt
filburt1
04-09-2005, 04:03 PM
That script tag is correct. Just make sure you close it.
Yes, every <br> should be changed to <br /> for XHTML compliance. However, if coded semantically, they shouldn't really be required. So, if you want to rewrite the thousand or so templates vB uses, rock on.
RichieBoy67
04-09-2005, 10:05 PM
Thanks for all of your help..
filburt1
04-09-2005, 10:07 PM
You should really learn HTML from a book or something (no disrespect, you just don't seem to understand the basics). You should close a <script> with a </script>.
<center> is deprecated, which means it is known to have problems or will be phased out in future implementations of the language. In any language, you should never use deprecated code.
RichieBoy67
04-09-2005, 10:21 PM
all set... thanks
Boofo
04-09-2005, 10:40 PM
You should really learn HTML from a book or something (no disrespect, you just don't seem to understand the basics). You should close a <script> with a </script>.
<center> is deprecated, which means it is known to have problems or will be phased out in future implementations of the language. In any language, you should never use deprecated code.
How do you find out which tags are deprecated?
Marco van Herwaarden
04-09-2005, 10:42 PM
You read the documentation.
RichieBoy67
04-09-2005, 10:45 PM
Seems to be tons of "depreciated code" in vb3.07 and it is brand new.... I guess it all depends on what is defined as "depreciated"......
Boofo
04-09-2005, 10:53 PM
You read the documentation.
I asked that question so someone might add a link or something to the thread so other would know where to go to find out and not have to ask. ;)
Good answer. :surprised:
RichieBoy67
04-09-2005, 10:56 PM
all set...thanks
Boofo
04-09-2005, 10:58 PM
I guess I am better off reading than asking a question here anyways....... Somehow I am always made out to feel stupid here...... sorry to waste cyber space... I know it is scarce..
No question is ever stupid if you don't know the answer. ;)
I apologize if I made you feel that way or uncomfortable for any reason. That was not the intention of my posts. ;)
filburt1
04-09-2005, 11:34 PM
Seems to be tons of "depreciated code" in vb3.07 and it is brand new.... I guess it all depends on what is defined as "depreciated"......
Stock 3.0.7 does not use deprecated code that I know of as defined by the XHTML 1.0 Transitional specification.
Princeton
04-09-2005, 11:41 PM
vb is valid ... it's the additional code that people add that is not valid ...
right now, the only thing that does not validate XHTML on a default vb install is the archive section
With HTML, so many developers were writing sloppy code ... which is why W3C came out with XHTML.
It is a bridge to what is coming.
Think of XHTML as a learning curve ... 'cause the next big thing is XML.
With XML, you need to code properly. Coding problems in XML will occur in a 'blank state' (error).
Learning the basics of XHTML (deprecated codes / nesting / etc) will prepare you for the next step.
RichieBoy67
04-10-2005, 03:33 AM
Thanks for the help...all set
Princeton
04-10-2005, 12:52 PM
XHTML was created to get everyone prepared for the next step ... that is all.
XHTML is not better than HTML it is just semantically correct.
Here's some more info...
Now, and in the future, there will be appliances (technology) that can browse the web ... this includes every household appliance in the house, pdas, even your watch, etc. (NOTE: Some of this stuff already exists.)
To make the content properly display on these appliances there has to be a set of rules. In the early days, there was no rules so browsers forgave all errors and displayed content as it thought it should be displayed--IE still does this.
Anyway, the modern browser engines will have to be smaller/compact to fit in these new appliances -- there will be no guess work on the part of the new engines. It will either display (no error) or not display (error exist).
XML will make this happen.
Your language file in the vb install file is XML -- and, if you know your stuff you can style that file.
Right now there are many sites that run and display content with XML at some scale ... the big sites--AMAZON, YAHOO, GOOGLE all use XML.
It's the next big thing. :up:
372: <table class="tborder" cellpadding="6" cellspacing="0" border="0" width="99%" align="center" style="border-top-width:0px">
373: <tr align="center">
374:
375: <!-- Forum link in navbar non drop down menu -->
376: <td class="vbmenu_control"><a href="http://www.talkandmore.net/local_links.php?amp;">Links and Downloads</a></td>
377: <!-- / Forum link in navbar non drop down menu -->
378:
379: <script type="text/javascript">
380: <!--
381:
382: function OpenvBChat(){
383: vBChat = window.open('vBChat.php?amp;','vBChat','directorie s=no,height='+window.screen.height+',width='+windo w.screen.width+',location=no,menubar=no,scrollbars =yes,status=no,toolbar=no')
384:
385: return false;
386: }
387:
388: -->
389: </script>
390: <td class="
move the javascript above the table or within the cell and it will pass ...
you cannot have anything between cells
</td>{nothing here}<td>
again, here's the same problem
vBChat</a></td></div>
<td
Anyway, if you want me to fix your html contact me -- no I will not charge you for this. :) This is a 1 minute fix.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.