Which HTML attribute is used to define inline style?
Answers
Answered by
10
Answer:
Explanation:
The style attribute specifies an inline style for an element. The style attribute will override any style set globally, e.g. styles specified in the <style> tag or in an external style sheet.
Answered by
2
HTML attribute that is used to define inline-style is known as the style attribute.
- The style attribute is used to define inline-style in the Html script.
- The syntax of style attribute in the Html is as follows:-
- <h1 style="color:green;text-align:left;"></h1>
- <p style="color:yellow;"></p>
- The function of the style attribute is to add more vibrancy and structure to the website.
Similar questions