Basic HTML

Advance HTML

HTML Tags Reference

HTML Code Generator

HTML Resource


HTML Global Attributes




Global Attributes

HTML Global Attributes is CSS ID attribute, CSS class attribute, style attribute, title attribute.

Attributes Value Description
id ID_Name Declared unique id name for perticular element.
class Predefined_Class_Name Declared/Defined class name in one or more element to apply CSS property.
style Style_Attributes Specifies/Write a CSS code in inline presented HTML element.
title Title_Description To show "tooltip" message for a element.

CSS ID

CSS ID attributes is use for assign a individual HTML element to identifier unique element id. Selected element using id you are assign any type style using CSS properties.

The ID selector use the HTML elements, and it is defined with a hash("#").

Syntax Understand

If you use CSS ID name in single elements than syntax first hash("#"), user defined ID name or property value

#ID-Name { Property:Value; }





If you use CSS ID name in multiple elements than syntax write this like first elements name, hash("#"), user defined ID name or property value

Element#ID-Name { Property:Value; }





CSS class

CSS class use to assign an elements and change individual selector class property value easy modify or change. CSS class syntax like dot(".") with class name.

CSS Class allows you to set a particular style for any HTML elements with the same class.

Syntax Understand

If you use class name in single elements than syntax write this like first dot("."), user defined class name or property value.


.Class-Name { Property:Value; }





If you use class name in multiple elements than syntax write this like first elements name, dot(.), user defined class name or property value.

Element.Class-Name { Property:Value; }