I'm a total newbie at CSS and HTML and I have just started trying my first CSS challenge. Namely, this one.
The "Best Solution" is this:
:after{width:70;content:'Hello World
However, I'm pretty confused by this and other solutions listed on the page. I get that the goal is to make your code as short and clean as possible, but is this kind of format acceptable in actual web development? As in, should I do this sort of code in practice? I get that the code achieves the outcome for this particular challenge, but I find it strange that certain characters such as apostrophes, semicolons and brackets are missing. I don't want to be learning this the wrong way or doing general bad practice.
I made the following solution which again gives me the outcome required (though I don't know if it's good coding or if in an actual website development situation it would cause issues):
.box:before {
content:"Hello World";
word-spacing: 200px;
text-align: center;
}
Why does the challenge's "Best Solution" do something different from this?