Hacker News new | past | comments | ask | show | jobs | submit login

    <base target=htmz>
    <iframe hidden name=htmz onload="..
I'm somewhat frightened to ask if there's some special voodoo need for leaving off the quotes on htmz...



Quotes are completely optional on attribute values in HTML5 if the value doesn't have certain characters like spaces which will require quoting

I've found this article a handy reference on all the stuff it's safe to leave out

https://meiert.com/en/blog/optional-html/


Nah it's a stylistic thing. It's so that you can see the `=htmz>` logo in code if you order the target attribute last :D


:O




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: