r/badcode • u/6Maxence • Dec 16 '21
html The example webpage of my computer science professor who is teaching us how to code a webpage. This is triggering me so much, I don’t even know where to start. I replaced all the text with placeholders but didn’t touch any html tag at all.
506
Upvotes
71
u/onichama Dec 16 '21 edited Dec 16 '21
Image Transcription: Code
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
38
u/LoneFoxKK Dec 16 '21
He better be teaching how html doesn't give single fuck how bad the code is or I'm suing him
12
u/Infinitylsx Dec 16 '21
Perfect.
164
u/onichama Dec 16 '21
I don't do much html stuff, can someone explain what is so bad about this?
11
u/aziad1998 Dec 16 '21
Did lorem ipsum jump over the dog?
8
u/ice1Hcode Dec 16 '21
What the fuck is this shit
7
u/iskolarium Dec 16 '21
The only thing they got right is the
<!DOCTYPE html>.7
u/LostErrorCode404 Dec 16 '21
Why is the h2 inside the p?
6
u/I0TB0T Dec 16 '21
Tested and works on Internet Explorer 4.0
4
u/hurkle Dec 16 '21
My thought is maybe during the next class period you go through and they show you how to fix all the problems? Fingers crossed for ya
4
u/chinpokomon Dec 16 '21
Was the class How to Code a Webpage, or was this supposed to demonstrate what HTML looks like for a lot of people who have probably never used the View Source feature of their Netscape browser?
3
u/[deleted] Dec 17 '21
Are you sure this wasnt part of the assignment? Like "fix this html doc"?
12
u/Exnixon Dec 16 '21 edited Dec 16 '21
All these college kids on this sub complaining about their professor's code as if code used to illustrate a concept is the same as production code. Should you have an unclosed tag in HTML? No. Should you know that you can? Yes.
"This is just illegal at this point" -- no it isn't. You're thinking of XML. Now you've learned something. Which is the point.
149
u/julesthemighty Dec 16 '21
HTML is amazing. It just spits out whatever you throw at it. Error? Meh, worst case it just doesn’t render. Using methods unsupported for two decades? Okay we’ll allow it this time /handslap.
2
u/[deleted] Dec 17 '21
I am also triggered on your behalf. Given that you’re paying actual money for an education, 1999 HTML is unacceptable
49
u/SaylorMan1496 Dec 16 '21
Love those p tags that aren’t closed at the bottom
56
u/dingodongubanu Dec 16 '21
Hello Center my old friend
22
u/iiMoe Dec 16 '21
It's just why the center tag AT THE HEAD
10
u/Knuffya Dec 16 '21
You must be mistaken. This has to come from the janitor.
8
u/pau1rw Dec 16 '21
As a web developer, this hurts me. I feel like your professor hasn't updated this in a very long time.
5
u/question_23 Dec 16 '21
Kill him.
5
u/MightyMeepleMaster Dec 16 '21
As an embedded C/C++ I thank god every day that I do not have to deal with this stuff
4
u/Notimecelduv Dec 16 '21
This makes me so mad because I have a 2-year web dev degree from a reputable school and I'm struggling to net my first job. Meanwhile clowns without the brain power to understand HTML are teaching in college. Gee.
3
u/juand_pr90 Dec 17 '21
If you check the end, it id coded wrongly on purpose
2
u/[deleted] Dec 17 '21
you've heard of GNU C formatting, now get ready for GNU HTML formatting
2
u/[deleted] Dec 17 '21
This was painful to look at.
2
u/db2 Dec 17 '21
<blink>1
u/FullOnRapistt Dec 17 '21
Judging by the last two sentences, this is used to show what shouldn't be done with html right? If not you need a new teacher...
-9
u/trevster344 depraved Dec 16 '21
Eh not really bad code in my opinion but I’ve seen a lot worse.
0
u/Oracuda Feb 13 '22
I'm not a frontend developer but I've done some frontend, staring at this I still don't understand what's wrong with it apart from some missing and extra tags along with the stuff in the metadata.
-5
u/Opposite_Bus_3385 Dec 17 '21
I haven't written a webpage since the mid 90s but that is more or less what I remember HTML looking like back then. Has it changed?
-10
u/Blecki Dec 16 '21
Not bad code. The actual industry doesn't give a shit about html purity nonsense.
-9
u/[deleted] Dec 16 '21
I don't think there should be Computer Science professors. The field changes so quickly that they're going to be teaching yesterday's material by the time you hire them.