Welcome to WebmasterWorld Guest from 54.145.208.64

Forum Moderators: incrediBILL

Message Too Old, No Replies

Bootstrap and HTML at the top?

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

WebmasterWorld Senior Member 5+ Year Member



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)

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



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)

WebmasterWorld Senior Member 10+ Year Member



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

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



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)

WebmasterWorld Senior Member 5+ Year Member



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)

WebmasterWorld Senior Member Top Contributors Of The Month



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?