Open Graph Tags, Content b4 Property?

Hi everyone,
I’m doing the the Full Stack Developer Curriculum and in the HTML Fundamentals Lecture I am learning about Open Graph Tags.
I understand it but I noticed that some of the examples are placing the Content attribute before the Property attribute.
Why is this? is it a case by case thing or can I put them in any order I choose?
Here’s an example:

<meta content="freeCodeCamp.org" property="og:title" />
<meta property="og:type" content="website" />

Thanks for any insight you can give me..

Hi. Can you link to the lecture please.

It seems it doesn’t matter which order attributes are placed in. According to this style guide there is a suggested order for writing consistent html, such as class attributes first, then id, then data and then everything else.

thank you @a1legalfreelance
Just an fyi, I just got through the Travel agency lab and that was interesting lol. I was getting erros for the figcaption element but had it placed right. Apparently you can’t leave an empty element.

So I guess “grammar” matters in some instances. not this one though!

1 Like