Attribute name Value Description align left, center and right. It indicates the alignment of paragraph on the page left, center and right. Horizontally aligned valign top, middle, bottom Vertically aligns tags within an HTML element. id User Defined The id attribute of an HTML tag can be used to uniquely identify any element within an HTML page. Names an element for use with Cascading Style Sheets. class User Defined The class attribute is used to associate an element with a style sheet, and specifies the class of element. Classifies an element for use with Cascading Style Sheets. Style color: blue; text-align: cente; background-color: DodgerBlue; font-size:40px; The style attribute in HTML allows you to define inline styles sheet for an element. When you use the style attribute, you can specify various visual properties directly within the HTML tag. These properties include things like color, font size, alignment, and more. title User Defined The title attribute defines some extra information about an element.The value of the title attribute will be displayed as a tooltip when you mouse over the element:
The upcoming module will learn you. Keep in mind that using inline styles can make your HTML code less maintainable, so it’s often better to separate your styles into a separate CSS file or a <style> block in the <head> section of your document.While semicolons are used to separate style attribute values, spaces can be used to separate multiple attributes in HTML tag