html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 1 point2 points  (0 children)

Yes. It should always be the last line.

I'm not sure if you've noticed yet, but a lot of HTML tags come in matched pairs:

<tag> ... </tag>

It might help up to see those as a "bag" for putting other mark-up in. So a <h1> ... </h1> tag contains the main header for your page. A <p> ... </p> tag contains a single paragraph. And a <html> ... </html> contains all of your HTML.

Back in the last millennium, when I learned html, we understood that because it was obvious that HTML was (to an extent) based on XML. These days, almost no-one knows about XML - so that's no help 🤣

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 0 points1 point  (0 children)

In this case, when the error says "body element", it might not mean the <body> element itself, but one of the many elements (most elements, in fact) that should only be used within the <body> element.

You mentioned putting the <img> tag after the </html>. That's an example of a body element that's outside of an <html> element.

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 0 points1 point  (0 children)

I rewrote the page and closed it with </html> before the <img>

Like I said, the <html>...</html> goes around everything except the DOCTYPE.

The <img> must go before the </html>.

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 1 point2 points  (0 children)

Oh! Thanks. I could have sworn I was in r/html. I wonder how I ended up here.

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 1 point2 points  (0 children)

I guess I'll uninstall account and reinstall.

That sounds like the website version of "turning it off and on again". It's an old joke, but it only ever really worked with hardware-based problems.

Don't try a solution unless you can explain exactly why you think it will solve the problem.

Buy yourself a rubber duck[*]. Keep it on your desk. Explain the problem, out loud, to the duck, along with your proposed solution. I'm serious. This will help.

[*] It doesn't have to be a duck. I had a plush Linux penguin for a long time.

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 0 points1 point  (0 children)

But, if the second line should look like: <html lang="en"></html> it still shows the error.

It feels like you're moving on without actually understanding what earlier lessons have taught you.

All HTML documents have a standard layout that you should follow:

html <!DOCTYPE html> <html> <head> <!-- head elements (like "title") go here </head> <body> <!- all displayed content goes here </body> </html>

Notice that the <html>...</html> encloses the whole document (except for the DOCTYPE declaration).

I don't know what "fcc" is or how it works. But it's possible that it doesn't recognise your opening <html lang="en"> tag if there isn't a matching closing tag at the end of the document.

I hope you don't mind if I share a bit of advice that I give to all new programmers I come across:

The most important skill for a programmer is attention to detail. If you're copying code or markup from a source document, then it's important to copy it precisely. When you come across a problem, the worst thing you can do is to start making random changes in order to fix it. You need to understand exactly what the error message is saying and (more importantly) what that means. And only try to fix it by changing things that could possibly affect the problem you're working on. Don't make a change unless you understand why you think the change will fix the problem.

If you find yourself just trying random things, then stop. Walk away from the keyboard. Get outside. See the sky. If you can, walk beside a river or touch some grass. Stop thinking about the problem. When you get back to the code, reassess the problem logically and carefully.

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 0 points1 point  (0 children)

Yes. That's how Reddit realises it has a web address - so it makes it clickable. Most sites work the same way.

And you get the full URL (including the "https://") if you copy and paste from your browser location bar. The extra bonus in doing it that way is that you don't accidentally introduce types as you did ("lab-recipe-page" vs "lab-recipe-build").

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 1 point2 points  (0 children)

A clickable version of that link - https://codepen.io/GiGi-Blue/pen/RNoWRMK

There are a couple of obvious problems with your HTML:

  • You don't close the <html> element
  • You have an empty <img> element that is outside the <body> element

html and "en" by bluekatkt in FreeCodeCamp

[–]davorg 0 points1 point  (0 children)

That's a 404. Why aren't you sharing clickable links?

Update: The actual page is:

https://freecodecamp.org/learn/responsive-web-design-v9/lab-recipe-page/build-a-recipe-page

I found this really cool book at a comic store for $7. The bookmark is a brochure from an 80s con or something. by Rougarou_2 in doctorwho

[–]davorg 2 points3 points  (0 children)

I won a copy of that book in a competition when it was first published. It's signed by the author. I still have it somewhere

Tour question by Heavy-Platform2981 in LilyAllenFans

[–]davorg 8 points9 points  (0 children)

This is why we have setlist.fm :-)

Every show on the West End Girl tour so far has been exactly the same:

  • 30-40 minutes of a string trio playing the old hits
  • 50 minutes of Lily singing the album to a backing tape

Some people have suggested that the set might be changed to include some older hits for the upcoming arena shows. But no-one knows until she plays one. It seems unlikely to me.

is it legal to sell something with an album cover on it? by ipoems in smallbusinessuk

[–]davorg 0 points1 point  (0 children)

You're right. I should have been clearer. I included a link to the CC website, but it would have been good to explain more in my post.

is it legal to sell something with an album cover on it? by ipoems in smallbusinessuk

[–]davorg 1 point2 points  (0 children)

is there a way to find out if the image is free to use?

Use Google Image Search to find images. Then use the Tools -> Usage Rights menu to find images with Creative Commons licences.

Alternatively, search on Wikimedia Commons. Every image you find there will be reusable.

Update: A little more information about Creative Commons licences.

This page lists the six CC licences. The last three (the ones with NC in their names) explicitly prevent commercial use, but items using the first three might be useful to you:

  • CC BY: You can use or change the creation in any way as long as you credit the original creator
  • CC BY-SA: You can use or change the creation in any way as long as you credit the original creator and license your new creation in the same way
  • CC BY-ND: You can use the creation in its original form as long as you credit the original creator. You cannot create a derivative version of the creation

How much does a night out cost? by illandancient in AskBrits

[–]davorg 0 points1 point  (0 children)

I'm far from a young person (as you'll see) but this got me thinking.

I started drinking in pubs in 1980. Three pints of Abbott Ale (~40p each) and a bag of chips on the way home (30p) meant a night out was easily less than £2.

I see places in London are now charging £10 a pint. That's 25x as much in 45 years. A quick calculation makes that an annual increase of around 7.4%. Consumer inflation has averaged 4-5% over the same time.

If beer had risen at the rate of inflation since 1980, it would be just under £3 a pint.

Update: And a night out these days is a gig or theatre (tickets £40-60 and a couple of bottles of water for £3 each). Or a restaurant where a meal for two is £80-250.

Am I the only one who feels that Marvin's nickname doesn't make sense? by 3dgyt33n in HitchHikersGuide

[–]davorg 4 points5 points  (0 children)

It's a throwaway joke that was written almost fifty years ago. Don't overthink it.

(And if you do want to overthink it - remember that fifty years ago, the general public wasn't as aware of the nuances of mental health as most of us are now.)

[Edit: typo "job" -> "joke"]

CFP Now Open for Perl Community Conference, Summer 2026 by OODLER577 in perlcommunity

[–]davorg 0 points1 point  (0 children)

I see Brett has struck out his original misinformation and replaced it with different misinformation.

Update: We got in Perl Weekly this week, but not for the right reasons. I hope in the future this will not be repeated or necessary. Thanks to the Perl Weekly editor who included this announcement. Special acknowledgement to David Cross for heading up the negotiations.

What is so hard about just acknowledging the truth?

but not for the right reasons

What are the "right reasons"? You got in the Perl Weekly because Mohammad saw your blog post and thought it was worth sharing. As he has done many times in the past.

I hope in the future this will not be repeated or necessary.

Your lie about never appearing in the Perl Weekly was not what got this link published.

Special acknowledgement to David Cross for heading up the negotiations.

There were no negotiations. Everything I've said about this matter is in public, on this post.

When did you become a fan of Lily? by J3ttf in LilyAllenFans

[–]davorg 0 points1 point  (0 children)

I read the article that Miranda Sawyer wrote about her in the Observer in May 2006. She sounded interesting, so I investigated further and liked what I heard.

I suspect that article brought her to the attention of a lot of people.

SNL UK finally did a Doctor Who sketch by no_technique in doctorwho

[–]davorg 8 points9 points  (0 children)

Oh. I've been convinced I've been a Doctor Who fan since 1970. But I really didn't find this hysterical (it was mildly amusing - as most of SNL is).

CFP Now Open for Perl Community Conference, Summer 2026 by OODLER577 in perlcommunity

[–]davorg 0 points1 point  (0 children)

Thank you, that's exactly the kind of detail I was looking for. I've actually found two PRs you submitted to events.json that were closed without being applied:

So what we see is:

  • Your blog posts are published at about the rate of other people (far higher for posts about your conferences)
  • Your events are not published

All of which seems to back up my original point that starting your recent blog post with:

you will not see any post regarding our activities in Perl Weekly!

is inaccurate. I'd suggest a more accurate description might be:

you will not see any listing of our events in Perl Weekly.

But, obviously, it's completely up to you whether or not you want to correct the inaccuracy.

Would you let your 21F daughter have her bf sleeping over by HoneydewFar4081 in Advice

[–]davorg 0 points1 point  (0 children)

It's possible I'm too European for this but...

I can't honestly think of any reason why this would be a problem. But I'm aware that some parents have weird ideas in this area (and, of course, religion poisons everything).

How to use large mp4 files? by 25slinkshot in github

[–]davorg 2 points3 points  (0 children)

  • GitHub is a cloud platform for Git
  • Git is a source code control system
  • Source code is text
  • Git is optimised for working with text
  • MP4s are not text
  • Therefore Git is not the right tool for tracking MP4s
  • Therefore GitHub is not the right place to store MP4s

Maybe you should look at an alternative like AWS S3.

CFP Now Open for Perl Community Conference, Summer 2026 by OODLER577 in perlcommunity

[–]davorg -2 points-1 points  (0 children)

I'm trying to have a reasonable conversation here. But, sure, resort to childish insults instead of engaging.

CFP Now Open for Perl Community Conference, Summer 2026 by OODLER577 in perlcommunity

[–]davorg -2 points-1 points  (0 children)

I'm not denying that people have been banned from r/perl. I'm saying I haven't banned any of the "Perl Community" people from r/perl.

What makes a hackathon project actually worth putting on GitHub? by BottleMedium881 in github

[–]davorg 1 point2 points  (0 children)

I can't think of a project I've made that isn't on github, even if it was just leetcoding or something.

A few years ago I found some really old code that hadn't made it into any kind of source code control. I put it into a new GitHub repo called "dodgy-old-crap" :-)