basic HTML element properties

This is element x. It has the following attributes:
class="red"
dir="ltr"
title="Test title"
id="test"

This page tests a few basic HTML DOM properties.

Test scripts

className

alert(x.className)
x.className = 'blue'
x.className = 'red'

dir

alert(x.dir)
x.dir = 'rtl'
x.dir = 'ltr'

id

alert(x.id)
x.id = 'otherID'
x.id = 'test'

title

alert(x.title)
x.title = 'Changed'
x.title = 'Test title'