Share via

IHTMLElement::title Property

Sets or retrieves advisory information (a ToolTip) for the object.


HRESULT IHTMLElement::get_title(BSTR *p);
HRESULT IHTMLElement::put_title(BSTR v);


  • p
    Pointer to a variable of type BSTR that receives the advisory text.
  • v
    BSTR that specifies the advisory text.

Return Value

Returns S_OK if successful, or an error value otherwise.


Windows Internet Explorer renders the title as a ToolTip when the user hovers the mouse over the object.

Titles are limited to 512 total characters; this limit includes control characters, such as line feeds, carriage returns, and so on.

See Also