Navigate/Search

Archive for the 'Markup' Category

HTML Character Entities

Thursday, May 7th, 2009

I’m throwing together an application that performs a variety of text conversions so I figured I’d compile a list of HTML entities and special characters as well.  I’m sure some of these lists overlap but I kept noticing that some didn’t contain everything.  *shrugs*

HTML Special Characters and Character entity references.

Character entity references in HTML 4 (from W3C)

HTML XHTML Entities

HTML 4 Entities

Escaping PHP to Markup and a thought

Sunday, February 8th, 2009

An example of escaping in and out of PHP in an HTML document.

<?php if (1 === 2) : ?>
<!-- if/Markup -->
<p>One</p>
<?php elseif (2 === 1) : ?>
<!-- elseif/Markup -->
<p>Two</p>
<?php else : ?>
<!-- else/Markup -->
<p>I have no clue!</p>
<?php endif; ?>

On that same note I believe you should parse all HTML documents that contain PHP as PHP — with some caution of course. Target specific directories for this behavior. Even better would be to handle it via mod_rewrite — that is, for example, interpret:

/index.htm

…as:

/index.php?category=news&default=true&frontPage=true

This opens up many possibilities without having to apply additional overhead to the PHP engine.

XHTML is not HTML and should be served accordingly

Tuesday, January 27th, 2009

Here’s another great link from Neil Crosby (I swear that sounds like the name of a crooner).

http://www.workingwith.me.uk/articles/scripting/mimetypes

And here are just a couple related links of interest.

http://www.iana.org/assignments/media-types/

http://en.wikipedia.org/wiki/MIME

Do not imitate ROWSPAN and COLSPAN, recreate them

Monday, January 19th, 2009

As abrasive as he can sometimes be, Jukka Korpela is a very bright and talented web standards aficionado.

http://archivist.incutio.com/viewlist/css-discuss/85534

I must say I don’t even fully grasp how he worded that response, but I believe I get the message.

Designing layouts with tables can easily be modified for a clean semantic standards-based web.

Structural tables don’t need to rely on an alternative CSS equivalent when those attributes are perfectly suited for laying out a structured (tabular) document.

Or something like that…