FacebookTwitterGoogle+Share

Imagined generality

One of the reasons i like HTML and CSS is because in my mind every tag is exactly the same, the only differences being in default CSS values for various tags. Now, this is obviously not the case, but it’s nice to believe. It’s for the same reason that i thought scheme was so pretty.

For such an inaccurate mental model, it works out rather well.

It’s when the lie is highlighted that I become frustrated or, worse, annoyed. Which is why I am not a fan of how certain tags can’t self close.

For example:

<script src="example.js" />
<div id="example" />

I feel like it’s something you should be able to do, and it’s not even close.

There are probably reasons, maybe even good ones, as to why this is not the case. Since they clash with my mental model, I am going to disregard them outright, and right now.

 

Unrelately, a few nights ago I stayed up until 5 am cutting up and formatting the Ardcorp design. It took me three hours, which is double what I had initially expected, but I’m pretty happy with the way it turned out. It matches the design well, the HTML is reasonably minimal, and the CSS is set up for easy re-styling.

Also I am working on a secret project, but didn’t get it finished in time for this blog 🙁

 

Comments

  1. Karl says:

    I can sort of understand <script> because <script> is weird and strange, but <div> should totally be able to close itself, and I really trusted firmly that it did until this blog post of yours shattered all my ideals!

    Ardcorp looks nice. I am very curious about the secret project =O

  2. Brad says:

    I wish that you could with the script tag, especially when you specify a src file, because it doesn’t like it if there’s anything between the two tags anyway?
    Also sometimes I self close tags without thinking about it, and then have to search through the html until i notice. 😛

    Tyty. I was pretty happy that they liked the design and didn’t have any revisions! 🙂

You must be logged in to post a comment.