| | |||||
| ||||||||
| Search Engines Discussion about Search Engines and SEO. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jul 2009
Posts: 114
![]() ![]() | Slash at the end of meta tags Does the slash matter? What is the difference; with or without the slash ? <meta name="description" content="Some description here" /> and without the / <meta name="description" content="Some description here"> Thanks.
__________________ PDF Reader |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Sep 2010
Posts: 289
![]() ![]() ![]() ![]() ![]() ![]() | The slash means end of element. It should actually be <meta name=""></meta> but since it's an empty element with only attributes, it's written <meta name="" /> This is all basic XML. Read up on it a bit..
__________________ vanilla.me - New/Transfer/Renew: $15 - The sweetest ccTLD Registrar |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Jul 2009
Posts: 114
![]() ![]() | Ok, I'm understand that but why some sites does have the slash and some others not? That is bugging me and I don't understand.
__________________ PDF Reader |
| |
| | #4 (permalink) |
| Forum Moderator ![]() Join Date: Aug 2006 Location: USA
Posts: 2,152
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | The slash is the correct syntax if you're using an XHTML doctype. It's an abbreviation for a closing tag (</whatever>) on void elements (elements which don't have content, like meta, img and input.) However it's incorrect and causes a validation error if your doctype is HTML 4.01 or earlier. HTML5 doesn't care - but if for some reason the page is going to be parsed as XML, use the slash. BTW, use of a closing tag for void elements is invalid in all HTML versions.
__________________ Enlytend Solutions - Internet marketing and web development Was my advice helpful? Please consider a small donation to the National Canine Cancer Foundation - a tax deductible 501(c)(3)that directly funds cancer research
Last edited by enlytend; 07-19-2011 at 03:42 AM.
|
| |
| | #5 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,963
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Look at the top of the HTML source code. Probably it's XHTML so the syntax is a bit different. For example self-containing tags like <br> will be written as <br />.
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HostTex - First Month Free, Reseller 50%, Free SSL, Free IP, Free End User Support | TheMostCreative | Web Hosting Offers | 0 | 07-14-2011 05:54 AM |
| HostTex - First Month Free, Reseller 50%, Free SSL, Free IP, Free End User Support | TheMostCreative | Web Hosting Offers | 0 | 07-02-2011 12:20 AM |
| HostTex l 99.9% uptime l Free end user support l Free SSL l Fantastico l Free IP | TheMostCreative | Web Hosting Offers | 2 | 06-14-2011 05:35 AM |
| ★ ThePrimeHost ★ • Reseller Hosting • End User Support • WHMCS • Starting @ $17.95 | theprimehost | Web Hosting Offers | 0 | 05-23-2011 11:03 AM |
| It is the end of the world as we know it! | Archangel | The Break Room | 5 | 05-21-2011 09:13 PM |