Html video tutorial in telugu
HTML Paragraph Attributes
HTML paragraph element attributes include:
- align – (Depreciated) The align attribute is used to set the alignment of the paragraph with respect to the page size. Values are LEFT, RIGHT, and CENTER. Example: <p align=”center”>
- class – The class attribute is used in conjunction with style sheets to associate an element with a class. The class attribute can set a class for specific element types or it can be independent of element types and work for all elements. The class attribute will provide the settings for specific style formatting.
- ID – The ID attribute is used to apply style settings to specific individual HTML elements.
- style – The style attribute is used to apply style settings for the specific element the style attribute is included with. An example is” <p style=”font: 16pt courier”> – This sets the style or color of the text. This statement starts a paragraph with color, green: <p style=”color: green”>. The STYLE attribute is common to most HTML elements .
- title – Used to give specific elements a title which may appear as a tooltip in some browsers when the mouse is held at or near the element.
HTML Paragraph Contents
The HTML paragraph element can only contain inline elements which are listed at the HTML Inline Elements page.
The paragraph element can be contained inside the elements “address”, “applet”, “blockquote”, “body”, “button”, “center”, “del”, “dd”, “div”, “fieldset”, “form”, “iframe”, “ins”, “li”, “map”, “noframes”, “noscript”, “object”, “td”, and “th”.