37.3k views
5 votes
If your body tag uses the style attribute, you can overwrite that property by using the CSS3 rule.

body{
text-algin: left;
}
A True
B False

1 Answer

5 votes

The CSS3 rule .body{text-align: left;} can overwrite the attribute of the body tag in HTML.

The subject of this question is Computers and Technology. The question is asking about overwriting the text-align property of the body tag in HTML, using CSS3 rules. It specifically asks if the CSS3 rule .body{text-align: left;} can overwrite the attribute of the body tag.

In HTML, inline styles are applied directly to the element using the style attribute, while CSS rules can be defined in a separate .css file or within the <style> tags in the HTML document. If both inline styles and CSS rules are present, the CSS rules take precedence over the inline styles.

In this case, the CSS3 rule .body{text-align: left;} will indeed overwrite the attribute of the body tag, as long as the CSS rule is applied after the inline style in the HTML document.

User Tim Wachter
by
8.2k points