vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Closing Tag Question (https://vborg.vbsupport.ru/showthread.php?t=79635)

RichieBoy67 04-08-2005 09:57 PM

Closing Tag Question
 
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

Quote:

Originally Posted by filburt1
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?


All times are GMT. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01202 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete