Welcome to the MKPitstop webmaster forums!
Your number one resource for webmaster help and computer support.
You can talk about anything else in our general section.
Register here for free!




+ Reply to Thread
Results 1 to 5 of 5

Thread: Optional Closing Tags in HTML

  1. #1
    New Member prashanthini is on a distinguished road prashanthini's Avatar
    Join Date
    Jan 2010
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Optional Closing Tags in HTML

    For as long as I've been validating web pages, I never realized that the closing </head> tag was optional in HTML. I feel as if I've missed the boat at times. While I'm all for trimming excess code, I just cannot for the life of me strip out closing tags because they are optional in HTML. I'd be concerned that something, somewhere would not parse the document correctly if I removed the closing </head> element. Are my concerns unfounded?

  2. #2
    New Member ashwinth is on a distinguished road ashwinth's Avatar
    Join Date
    Feb 2010
    Posts
    3


    Did you find this post helpful? Yes | No

    Default hai

    adding </head> to your page is not going to add that much code I would definitely keep closing them. I don't know where you saw that it was optional to close the <head> element, but it doesn't sound like a good idea.

  3. #3
    New Member nipuni is on a distinguished road nipuni's Avatar
    Join Date
    Mar 2010
    Posts
    3


    Did you find this post helpful? Yes | No

    Default hai

    It will work without it in a browser, but it is still incorrect. Some browsers would probably display properly with just the <html></html> tags and no <head> or <body>.

  4. #4
    Senior Member ZenMaster is on a distinguished road ZenMaster's Avatar
    Join Date
    Mar 2010
    Posts
    199


    Did you find this post helpful? Yes | No

    Default

    If you're in the habit of using closing tags, then why try to break the habit. Just keep doing what you're doing, especially since it sounds like it works for you.

  5. #5
    Senior Member Levinson is on a distinguished road Levinson's Avatar
    Join Date
    Mar 2010
    Posts
    426


    Did you find this post helpful? Yes | No

    Default

    Actually I am not aware either that it's optional, thanks for starting this thread. But though the closing tag is optional, it's a good habit to always include it, just in case. Anyway, I am aware that the other tags like </bold>, </center> and </italic> are completely optional.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Title tags on image and text links
    By Mirey86 in forum Search Engine Optimization
    Replies: 5
    Last Post: 10-04-2008, 9:38 PM
  2. Optional Closing Tags in HTML
    By Zemfik in forum Website Coding
    Replies: 16
    Last Post: 07-17-2008, 8:41 PM
  3. what's tags
    By maroo2007 in forum Community Chat
    Replies: 1
    Last Post: 01-20-2008, 8:44 PM
  4. A couple of my tags
    By Mcguire in forum Website Graphics
    Replies: 6
    Last Post: 09-19-2007, 12:36 AM
  5. Replies: 2
    Last Post: 08-05-2007, 12:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts