PDA

View Full Version : W3Schools HTML Quiz


Greenguy
2012-06-14, 10:08 PM
I got 17/20 - take the test & post your results :)

http://www.w3schools.com/quiztest/quiztest.asp?qtest=HTML

Cleo
2012-06-14, 10:24 PM
Result:
18 of 20
90%
You can be proud of yourself!
Time Spent
5:47

I got these two wrong.
16. What is the correct HTML for making a text input field?

You answered: <input type="textfield" />
Wrong Answer!

17. What is the correct HTML for making a drop-down list?

You answered: <input type="dropdown" />
Wrong Answer!

cd34
2012-06-14, 10:31 PM
Result:

20 of 20
100%

Perfect!!!

Time Spent
2:35

And I don't even like html. :)

dunc
2012-06-15, 12:41 AM
19 of 20

95%

You can be proud of yourself!

Time Spent
3:37

I got a background question wrong in html5.... which is wierd cos I used the same answer later on and got that right |huh

flowersgone
2012-06-15, 03:04 AM
So I got all 20 in 3:32

Since that was slower than Sparky I decided to try learning something new ...

I went through the test one more time and used firebug to move the hidden variable

<input type="hidden" value="6/15/2012 2:55:20 AM" name="starttime">

to a value that made my final time ok by me ...

Had never tried that before. Might be an online test taking skill some day ...

fg

ecchi
2012-06-15, 04:45 AM
Question five confused the fuck out of me.

5. What is the preferred way for adding a background color in HTML?
<body style="background-color:yellow">
<background>yellow</background>
<body background="yellow">


My answer would be "none of the above". I use:
<body bgcolor="#ffff00">

Dr Bizzaro
2012-06-15, 08:48 AM
Result:
17 of 20
85%
You can be proud of yourself!
Time Spent
3:36




I AM proud of myself. I'm gonna print that out and hang it on the fridge.

Cleo
2012-06-15, 09:08 AM
Damn, looking at everyone's time spent. I guess watching the original Iron Man movie at the same time as taking the quiz wasn't such a good idea. :D

Simon
2012-06-15, 09:46 AM
Don't feel bad, Cleo, it took me even longer as I was on the phone while doing mine.

Result: 19 of 20
95%
Time Spent 10:15

I misread one question about how to make a list with numbers as if the question was *without* numbers.

But pretty easy questions for anyone who writes code in a text editor.


Greenie-period

cd34
2012-06-15, 10:22 AM
My answer would be "none of the above". I use:
<body bgcolor="#ffff00">

bgcolor was deprecated in HTML 4.01 and you're supposed to use CSS syntax now. While it works now, once HTML5 is finalized (and I don't think you can use bgcolor on HTML 4.01 strict), sites that depend on that will start to break.

In reality, it should be done through CSS, not a style parameter to the body tag, but, either way is permissible.

pc
2012-06-15, 03:30 PM
Result:

17 of 20
85%

You can be proud of yourself!

Time Spent
3:45

Fonz
2012-06-16, 11:07 AM
17 of 20

85%

You can be proud of yourself!

Time Spent
3:47

pc
2012-06-16, 12:28 PM
17 of 20

85%

You can be proud of yourself!

Time Spent
3:47

I beat you by two seconds :P

Fonz
2012-06-16, 05:10 PM
I beat you by two seconds :P

Their server must be in Poland ;)

ecchi
2012-06-19, 06:47 AM
bgcolor was deprecated in HTML .....sites that depend on that will start to break.
Thanks.

So I'm going to have to change over 100 sites, that is several thousand pages.

Fuck!

dunc
2012-06-19, 06:57 AM
It was depreciated in 1996 or 1997 - so you have had a few years to make changes.

You gotta keep you with the Jones

ecchi
2012-06-19, 06:58 AM
It was depreciated in 1996 or 1997 - so you have had a few years to make changes.
I missed that memo!

Greenguy
2012-06-19, 07:45 AM
I think I read that the HTML codes that will no longer work won't happen til 2025 or something silly like that. Until that time, I'll use the occasional <center> whenever I damn well feel like it! :D

Jeremy82
2012-06-19, 09:07 AM
Result:
15 of 20

75%

Almost! Study a little more and take the test again!

Time Spent
3:08

|pokefun| |huh

ecchi
2012-06-20, 03:38 AM
Until that time, I'll use the occasional <center> whenever I damn well feel like it!
OK, fuck this, you are saying that "center" is obsolete too???? I really must do some fucking homework occasionally!

I guess this is an example of "old people not keeping up with the times". :(

On the plus side, if I stop using "center", my spell checker will stop telling me that my code is all wrong (It is set to true English, not American English, so "center" is seen as a spelling mistake).

mOrrI
2012-06-20, 06:18 AM
Damn, looking at everyone's time spent. I guess watching the original Iron Man movie at the same time as taking the quiz wasn't such a good idea. :D
Result:
20 of 20

100%

Perfect!!!

Time Spent
7:35

Well Cleo I guess taking the quiz while having my daughter asking questions and giving me things isn't also a good idea :D

Greenguy
2012-06-20, 10:10 AM
OK, fuck this, you are saying that "center" is obsolete too???? I really must do some fucking homework occasionally!

http://www.w3schools.com/html5/html5_reference.asp

ecchi
2012-06-21, 05:36 AM
Hmm, seems to me that as soon as HTML 5 becomes "THE" standard, a hell of a lot of non-professional sites will break. For example, if you are in to TV SCI-FI the best site for that is http://clivebanks.co.uk/ but that is entirely done on frames, and he appears to have been given or bought a template to use, and knows very little about HTML, so what is probably my biggest non-work related resource will disappear! :(

housekeeper
2012-06-21, 12:43 PM
I think the biggest changes will be reflected in video and some graphics, though there are quite a few new tags to be mindful of. Best to start using them now...

cd34
2012-06-21, 01:44 PM
Hmm, seems to me that as soon as HTML 5 becomes "THE" standard, a hell of a lot of non-professional sites will break.

HTML4.01 Transitional will still be supported, which supports the bgcolor and center tags, etc. HTML4.01 Strict does not support those tags, which is what a lot of sites should have moved to as it eliminates a lot of the cross-browser incompatibility. HTML4 was only standardized in 1999, and is supposed to be supported until 2024 if I recall the RFC.

As the line between websites and apps blurs, HTML5 offers a number of features that are extremely useful. You know all that code you need to play a flash video on IE and Firefox/Chrome/Safari? Single <video> tag now.

As for HTML4, I think there is a very good reason to move to CSS and stylesheets. If you are hoping that Google and the other search engines are going to give you some attention, it is in your best interest to separate the markup from the content. So, all of your styling elements, nested tables to get those borders, etc really should be done in CSS and moved out to an external file so that Google gets a page that is primarily content. It makes the spider's job easier. Also, if you use a common stylesheet on multiple pages, a surfer moving through your site has to fetch less data, resulting in faster pageloads.

All it takes is a missing " or missing </a> to really confuse the searchbots and possibly devalue that page. Having a page that validates without improper nesting to get some of those special borders around images or text, just seems like the right way to do it. With CSS, you can do interactive buttons as a list that work well on mobile without having to use a lot of JavaScript.

In the long run, I see nothing but benefits to use today's standards, rather than using what still happens to work.

I don't know that I would go back and change thousands of pages, but, I would probably focus on using these techniques from this day forward.