Sonia
09-08-2003, 11:53 PM
There are some tags which don't have a closing tag e.g the break tag <br>. Do these tags have a special name compared to those tags having a closing tag?
|
Click to See Complete Forum and Search --> : Tags Sonia 09-08-2003, 11:53 PM There are some tags which don't have a closing tag e.g the break tag <br>. Do these tags have a special name compared to those tags having a closing tag? Fang 09-09-2003, 01:59 AM Not really, the use of the closing tag depends if you are scripting for HTML or XHTML. Both are valid, but XHTML is a newer standard. Learn the differences here (http://www.w3schools.com/default.asp) or for a more detailed view of the standards here (http://www.w3.org/MarkUp/) spufi 09-09-2003, 12:13 PM I believe the correct term is an empty tag. 96turnerri 09-09-2003, 12:15 PM i think the term is closedtag another xample is <hl> spufi 09-09-2003, 12:34 PM Originally posted by 96turnerri i think the term is closedtag another xample is <hl> Incorrect. Opening tag is <h1>. Closing tag is </h1>. You can and should place information between the tags. A tag that doesn't have a closing tag to go with it because there is nothing to define outside of the tag itself is a empty tag. Empty due to no information outside of the tag itself. Using XHTML shows this better. A <br> tag in XHTML is <br />. The tag does what it needs to with no extra information needed outside of the tag. 96turnerri 09-09-2003, 12:35 PM sorry my mistake meant <hr> 96turnerri 09-09-2003, 12:49 PM i meant a horizontal line thats why i got confused saying <hl> not <h1> <HL> i meant <hr> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |