Welcome to WebmasterWorld Guest from 54.160.254.203

Forum Moderators: incrediBILL

Message Too Old, No Replies

Bootstrap and HTML at the top?

     
1:33 pm on Nov 20, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Oct 25, 2006
posts: 995
votes: 0


I have seen confirmed or validated
<!DOCTYPE html>

Issue is that just <html> will change to Quirks mode.
What is the best way using frameworks or particular
bootstrap?

There are many sources with options like:
URL:
[webdesign.about.com...]

URL:
[getbootstrap.com...]
1:53 pm on Nov 20, 2013 (gmt 0)

Senior Member from LK 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Nov 16, 2005
posts: 2417
votes: 17


Issue is that just <html> will change to Quirks mode.


No. What browser have you come across that goes into quirks mode with <!DOCTYPE html>
8:41 pm on Nov 20, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 23, 2005
posts:742
votes: 0


@graeme_p What he said is with "just <html> will change to Quirks".
7:49 am on Nov 21, 2013 (gmt 0)

Senior Member from LK 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Nov 16, 2005
posts: 2417
votes: 17


I am a bit confused by that. I assume be meant <!DOCTYPE html> because he does not seem to have any any reason not to use it: it is what one of the sites he links to recommends, and it is what the other uses.

What is the problem with using it?
10:37 am on Nov 21, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Oct 25, 2006
posts: 995
votes: 0


Browsers are depended on W3C recommendations. As Quirks mode is not a standard. It means you have correct DOCTYPE declaration like <!DOCTYPE html>, but just <html> will turn on quirks as this is not correct DOCTYPE declaration.

I guess this is correct interpretation.
12:56 am on Nov 29, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:July 19, 2013
posts:1097
votes: 0


I really don't understand the question/issue, and I'm guessing others don't either -- You're saying without a preceding doctype declaration:

<html>
<head>
blah blah blah

Will turn on quirks mode, but

<!DOCTYPE html>
<html>
<head>

blah blah blah

Will not -- Correct so far?

If I am, and the answer to the question is not: "Use <!DOCTYPE html><html> rather than simply an opening <html> tag.", then please, ask the question again or give us some clue why someone who had access to a webpage to add code, etc. would use <html> rather than <!DOCTYPE html><html>, because it really makes no sense to me and if someone has enough access to add code, it certainly seems like they should have enough access to add a doctype declaration, so why on earth would they choose not to?