/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: class

[this page | pdf | back links]

The HTML class attribute indicates one or more style class names (as per CSS) that apply to the element. If more than one class is to be applied to the same element then they should be separated by a space.

 

Valid attribute values include:

 

Value

Description

CSSclass

CSS style class

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile