1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Deprecated HTML (FYI)

Discussion in 'Web Design & Development' started by billyransier, Jul 16, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. billyransier

    billyransier Thread Starter

    Joined:
    Jul 15, 2007
    Messages:
    1
    The Following HTML tags are becoming deprecated, and will not be supported in future versions of HTML..... It is recomended to start straying away from them now and useing alternate methods to do the same thing.


    <applet> - defines an applet
    <basefont> - defines a base font
    <center> - defines a centered text
    <dir> - defines a directory list
    <font> - defines a text font, size, and color
    <isindex> - defines a single-line input field
    <menu> - defiones a menu list
    <s> - defines a strikethrough text
    <strike> - defines a strikethrough text
    <u> - defines underlined text
    <xmp> - defines preformatted text
     
  2. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    Most of those tags were deprecated with 4.01 strict and xhtml.
     
  3. pcpro17

    pcpro17

    Joined:
    Oct 9, 2006
    Messages:
    469
    I've heard before that <center> is being depracated. (The w3c validator flags it now too.) However, nothing is mentioned regarding a recommended alternative. Are we supposed to just use <div align="center"> instead?
     
  4. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
    align="center" is just as bad. :)

    test-align: *POSITION*;

    is a css attribute that works.
     
  5. pcpro17

    pcpro17

    Joined:
    Oct 9, 2006
    Messages:
    469
    Do you mean 'text-align'? If so, it only works on inline elements. This would not normally be a problem, assuming all the content is either static, or strictly controlled by the webmaster. However, using text-align to center dynamic content poses issues, especially when users attempt to post content that the web browser interprets as a block element (e.g. <object> or <embed>).
     
  6. MMJ

    MMJ Guest

    Joined:
    Oct 15, 2006
    Messages:
    3,625
  7. namenotfound

    namenotfound

    Joined:
    Apr 30, 2005
    Messages:
    3,012
    You shouldn't use <embed> either, it's not a standard tag ;)
     
  8. Shadow2531

    Shadow2531

    Joined:
    Apr 30, 2001
    Messages:
    2,636
    FONT, EMBED and MENU are currently in HTML5.
    http://www.whatwg.org/specs/web-apps/current-work/multipage/section-the-command.html#menus
    http://www.whatwg.org/specs/web-apps/current-work/multipage/section-presentational.html#the-font
    http://www.whatwg.org/specs/web-apps/current-work/multipage/section-embedded.html#the-embed

    APPLET is not and you should load applets like the following:

    Code:
    <object type="application/x-java-applet" width="300" height="300">
        <param name="code" value="MyJavaClass">
        Fallback for when the type does not have a handler or the handler is turned off.
    </object>
    
    In the case of loading applets with OBJECT, the type you use and the params you use are dependent on the plugin/interface that's handling Java.

    In this case and most cases, it's Sun java, so the type value is any of the types the plugin reports that it supports (or the types the browser supports if it interfaces with Java directly). Also, code, codebase, archive and mayscript are reserved param names when using Sun Java.

    classid, code, codebase, mayscript and archive are not valid attributes for OBJECT.

    However, APPLET may be reintroduced for semantics and universal loading (as in let the browsers map the attributes/params to the plugin-supported params), but we'll have to see. You can still use APPLET with JS though.
     
  9. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/596369

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice