W3Schools.com

HTML / XHTML Standard Attributes


The attributes listed below are standard, and can be used in nearly all HTML/XHTML tags.


Core Attributes

Valid in all elements, except: <base>, <head>, <html>, <meta>, <param>, <script>, <style>, and <title>.

Attribute Description
class Specifies one or more classnames for an element (refers to a class in a style sheet)
id Specifies a unique id for an element
style Specifies an inline CSS style for an element
title Specifies extra information about an element


Language Attributes

Valid in all elements, except: <base>, <br>, <frame>, <frameset>, <hr>, <iframe>, <param>, and <script>.

Attribute Description
dir Specifies the text direction for the content in an element
lang Specifies the language of the element's content
xml:lang Specifies the language of the element's content (for XHTML documents)


Keyboard Attributes

Attribute Description
accesskey Specifies a shortcut key to activate/focus an element
tabindex Specifies the tabbing order of an element


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE