+ Reply to Thread
Results 1 to 5 of 5

Thread: Optional Closing Tags in HTML

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


    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
    ashwinth's Avatar
    ashwinth is offline New Member ashwinth is on a distinguished road
    Join Date
    Feb 2010
    Posts
    3


    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
    nipuni's Avatar
    nipuni is offline New Member nipuni is on a distinguished road
    Join Date
    Mar 2010
    Posts
    3


    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
    ZenMaster's Avatar
    ZenMaster is offline Senior Member ZenMaster is on a distinguished road
    Join Date
    Mar 2010
    Posts
    200


    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
    Levinson's Avatar
    Levinson is offline Senior Member Levinson is on a distinguished road
    Join Date
    Mar 2010
    Posts
    272


    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 Engines Optimization and Link Building
    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 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