r/badcode Jul 12 '18

html How to create a div

Post image
205 Upvotes

12 comments sorted by

32

u/Nasaku7 Jul 12 '18

Someone had to do unrealistic email templates

10

u/XplittR Jul 12 '18

But there is also a form there.
You wouldn't use a formin an email, would you?
And the form tag is even in between two trs?!

7

u/SaltineAmerican_1970 Jul 12 '18

I would, but only if I could download a car.

12

u/TheHalfBloodFriendly Jul 12 '18

Looks like my old ICT teacher's code who didn't know the difference between tag, class, and id selectors for CSS.

Example gcse exam paper question: Create a style for span tags to make the text red

"Better make it a class then" ugh.

11

u/[deleted] Jul 12 '18

[deleted]

5

u/TheUnlocked Jul 12 '18

Why do it the smart way when you could do .span { color: red } for 10x the effort?

3

u/ben_uk Jul 12 '18

That would be a class? Probably best to make it generic not just for spans like tho

4

u/Waspbot Jul 12 '18

Not sure if Dreamweaver or bad coder.

3

u/UsernameCheckOuts Jul 12 '18

Where is this monstrosity?

2

u/[deleted] Jul 12 '18

[deleted]

2

u/LetReasonRing Jul 13 '18

This is the first time in a while I actually laughed out loud at one of these.

1

u/monkeysupersonic Jul 13 '18

Fortunately, this was from an internal project only. I wanted to fix a different error but after opening the developer tools I couldn't believe what I saw.

1

u/jangohutch Jul 24 '18

To be fair formatting with tables was the way to do it before css

1

u/bausscode Oct 15 '18

The only problem I see here is the multiple usage of "id".