Archive for the ‘HTML’ Category

Samsung’s Galaxy Tab tablet, iPads, Android … what it means for web designers?

Monday, September 20th, 2010

Google Android logo

A few months ago, I warned web designers against rushing into new technologies before their time. I was talking about HTML 5 and CSS 3 and how for the typical web browser, they would not be widely adopted for years.

Things change …

But now, just a few months later, with the crazy success of the iPad and iPhone along with the growing buzz for the soon to be released Samsung Galaxy Tab tablet (among many others), it has become clear to me that web designers need to start looking in this … especially if you are thinking about the mobile Web.

So in response to this (and demand from people) we released a video course on the most important aspects of HTML 5 and CSS 3. Some of the topics we cover include:

* XHTML and HTML5 Compared
* Looking at HTML5 Tags
* CSS3 Gradients
* Page Layout With HTML5
* Floats, Sidebars, and Overrides
* Working With Fonts
* Advanced Backgrounds
* Video
* Introducing The Canvas Tag
* Visualizing Data With Canvas

Thanks for reading.

Stefan Mischook

killersites.com

HTML nerd trivia: what exactly is HTML?

Saturday, September 11th, 2010

Hi,

Once in a while, it can be fun to look at the deeper meaning of the technologies behind web design. So let’s start with the most basic: what exactly is HTML?

HTML is short for:

Hyper Text Markup Language.

In a nutshell: HTML is a written language used to mark-up a page. Think of marking-up like placing markers on a field. These markers give instruction to people who understand what the markers mean. In the case of web design, replace ‘makers’ with tags, a web page for a field and people with web browsers – like Internet Explorer or Firefox. To summarize:

markers = html tags/text
field = web page
people who read markers = web browsers

.. Confused? Then check out this screencast on basic web design.

What’s ‘Hyper’ in the Text?

I recently discovered that many a web designer and programmer may not really know that in HTML, hyper text is a reference to the links – links are the ‘hyper text’ in the markup language. The text in a web page that is turned into a link, is made ‘hyper’ because when you click on it, the web browser takes you to another page, or downloads a file etc … It’s kinda hyper active, like a 5 year old who’s had too much sugar.

There are other markup languages that predate HTML btw, languages like SGML. In fact, SGML is the father/mother of HTML.

Now you can impress your next date with this information. That’s all for now.

Stefan Mischook.
www.killersites.com

Should web designers be learning HTML 5?

Thursday, April 15th, 2010

html 5

Hi,

I am starting to hear that all too familiar nerd-buzz of premature excitement – this time it’s about HTML 5 and all it’s cool new capabilities.

Yes, HTML 5 does have a lot of cool things it can do, and so it’s tempting to jump in and start learning. But that would largely be a waste of time … at least for now.

What?! Isn’t HTML 5 the future?

It sure is. In fact, I’ve been telling people for years that XHTML was a pipe dream (because IE would not support it) and I advised people to stick to good old HTML … even when it was heresy to say so! Here’s the problem (now) with HTML 5 – most of the browsers being used today don’t support it AND it will take a few years before the majority of people out there will have HTML 5 equipped browsers.

… Man, reality does bite!

Hard-core nerds tend to ignore reality

A time long, long ago, in an Internet that is now far, far away … back in the mid to late 1990’s, CSS was invented and naive nerds such as myself started playing with it, investing precious time that could have been spent playing video games, only to find that most of the browsers being used did not support it … so using CSS was basically useless.

… It took several years before CSS enabled browsers had penetrated enough to use CSS in a serious way. Using CSS prior to wide adoption, only ended with wasted time and disappointment, since you could not actually use it live. The same will be true for much of HTML 5 – unless you start hacking and browser sniffing and all kinds of other nonsense.

Let me conclude by quoting Coder’s Code #36:

The wise web designer shall not waste precious time on learning cutting edge technology … if said nerd wishes to earn a living.

Stefan Mischook
www.killersites.com

Is HTML a scripting language?

Thursday, August 24th, 2006

I’ve seen this confusion come up from time to time – is HTML a scripting language?

Short answer: no.

Yes a nerd detail, but nonetheless, this is something that should be made clear.

THE DETAILS:

HTML is actually a markup language and not a scripting language.

Scripting implies decision making capabilities (the code can actually evaluate and take an action based on what it finds) – PHP, PERL, Ruby, Javascript are examples of scripting languages.

Markup languages create structure for a document … they only describe data. For example:

  • HTML
  • XHTML
  • XML

… but you knew that already.

[;)]

Stefan Mischook

Book Review: Web Design in a Nutshell – 3rd edition

Wednesday, August 2nd, 2006

This book should probably be on any web designers/developers desk.

Web design has changed drastically since this book’s first edition came out … and thankfully Web Design In A Nutshell has been updated accordingly.

As with all of Oreilly’s ‘Nutshell’ books, Web Design In A Nutshell covers each topic in a concise and yet complete manner making it both a great learning title (for people with some web design skills,) and a great reference.

Some of the topics covered:

  • CSS – basics, page layout methods, hacks, tricks etc
  • HTML, XML and XHTML
  • Accessibility
  • Web graphics

… and so much more.

Besides the core coverage of the material itself, this book is also packed with great references to web sites and other good books on web design.

Get the book.

Three reasons you should learn to hand code your web pages.

Wednesday, January 25th, 2006

In this podcast, I discuss the 3 reasons why learning to hand code your web pages makes sense … and dollars too! 

Podcast running time: 7:30

Download MP3 link: 3 Reasons to hand code

Thanks,

Stefan Mischook

Tag Soup: why using XHTML does not make sense.

Monday, December 5th, 2005

Using XHTML instead of HTML to build web pages is one of today’s web design fads. Like other silly practices promoted by the web standards zealots (using CSS hacks for example,) this is something that will create extra work for no real PRACTICAL advantage and may even create problems for you!

People have been sold on XHTML with the typical web standards arguments that have a tendency to ignore the ‘reality in the field’. In this article I explain why you should stick to using good old HTML for the time being.

First, what is the reality today?

  1. Internet Explorer 6 and 7 (among other browsers,) will NOT render XHTML.
  2. If you use XHTML, DOM scripting and AJAX will be much more trouble.
  3. The supposed advantage (if ever realized,) are really minor at best.

Let’s consider these points:

BROWSERS AND XHTML

  • When you serve XHTML to most browsers, your crazy-cool XHTML will be treated like ordinary HTML, thus loosing all the supposed advantages of XHTML.
  • If you want browsers to treat XHTML as XHTML, you need to set the MIME type to: application/xhtm+xml. The problem is that IE6, IE7 and other browsers, will give you the ‘download this document’ pop-up box instead of displaying the page in the browser window.
  • If you’re really intent on using XHTML, you could use scripting to sniff out browsers and change the MIME type accordingly, but this would lead to script-branching – if you wanted to use any DOM / AJAX scripts … more headaches.

HOW DOM SCRIPTING IS MADE HARDER WITH XHTML

The issue that stands out the most for me (and is enough for me to not use XHTML,) is that you can’t use ‘document.createElement’ to create new elements with the DOM if you are using XHTML.

In case you don’t know, ‘document.createElement’ is one of the key methods of DOM programming and by extension AJAX.

-

This topic was recenty discused on the message board:

XHTML OR HTML

Stefan Mischook

What are CSS tables?

Saturday, November 19th, 2005

NOTE: This article is theoretical – CSS tables are not supported by the browsers yet, and cannot be used. I wrote this article to make a few points and to expose people to lessons learned in software development: that grids are an excellent way to layout user interfaces.

Stefan

-

Grid layout patterns are commonly used in creating software interfaces – in web design we call them ‘tables’.

But today HTML table based layout is generally frowned upon because:

  1. HTML tables render/display content in a fixed format/style that might not display properly in certain types of browsers.
  2. Tables semantic meaning is thought to represent tabular data – like a spread sheet. Thus using them for page level layout is just wrong … gosh darn it!

There are other reasons why some web designers will say HTML tables suck:

  • HTML tables cause code to be bloated and thus pages will take longer to download.
  • HTML tables will make your website less search engine friendly.
  • HTML tables will make your websites less accessible.

The last 3 points are myths and should be ignored – I covered that in other articles.

That being said, the first point about tables imposing a fixed format/style (where formatting and structure are intertwined – that’s bad,) is very real and very important. It is so important in fact, that I will do what I can to avoid table based layout despite the extra work and problems this can cause.

It’s a terrible shame

Using a grid/table to create UI’s is intuitive, too bad that table based layouts are so controversial … but there maybe is a light at the end of the web UI tunnel: CSS table layouts.

What the heck are CSS tables?

From the W3C:

‘The CSS table model is based on the HTML 4.0 table model, in which the structure of a table closely parallels the visual layout of the table.’

Now in English:

CSS tables are just a set of CSS attributes that you can apply to (probably) div tags to create a ‘table’. Check out this code snippet and things should clear up:

<div class=”table”>
<div class=”row”>
<div class=”cell”>
<p>Yallow!</p>
</div>
</div>
</div>

This is an official W3C specification, I’m not inventing anything here!

So why invent CSS tables when we have HTML tables?

The answer is simple young grasshoppers: to gain the advantage of table based layout while avoiding the problems (mentioned above) with HTML tables:

  1. HTML tables format content in a fixed structure that might not render properly in certain browsers.
  2. Tables semantic meaning is thought to represent tabular data – like a spread sheet. Thus using them for page level layout is just wrong.

CSS tables can’t be used in any browser today, so why mention them?

I have two reasons why I wrote this article:

  1. To educate people of this long term possibility and maybe to start stirring things up – it would nice to have this web design tool.
  2. To make a point about grid based layouts: they have merit and should be considered.

Stefan Mischook

Video tutorial: HTML link tags for beginners

Tuesday, November 8th, 2005

Mini video tutorial on HTML link tags now online.

Running time: 7:37

Link: HTML link tag video tutorial

Video tutorial: HTML list tags for beginners

Monday, November 7th, 2005

Mini video tutorial on HTML list tags now online.

Title: HTML list tags for beginners.

Running time: 4:51

Link: HTML list tags for beginners

Site Map  |  Top of page  go to top of page