Home › Forums › CSS › Creating a border using CSS › Reply To: Creating a border using CSS
February 8, 2017 at 12:29 pm
#251277
Participant
anything with = needs to be in quotes.. example
id=”something”
class=”something”
href=”link” etc…
Sorry but that isn’t entirely accurate. Doing as gkp1987 did, with the unquoted single class values, is perfectly valid too in inline HTML. As are unquoted href, src, id, etc., values. Attribute values only need to be surrounded in straight quotes, or straight apostrophes, if they contain space characters (as is the case with multiple classes) tabs, new lines etc., or other special characters like "
'
=
>
or <
.
Check out the specs for more info https://html.spec.whatwg.org/multipage/introduction.html#intro-early-example