Three ways to inherit CSS
1. Intra-paragraph inheritance
<p style="color:red;font-size:50px;" > Original style </p>
The original becomes red,
The font size of the text becomes larger
All two are implemented by changing the value of the Style property. Syntax Explanation:
1. Each style attribute will have a different value, and "color:red" expresses the property of the color by a colon.
2. Use semicolon spacing and closing between attributes
3.font-size belongs to composite properties
2. In-Document inheritance
<style> global style to use <style> tags, set between < head> headers
Style–type declaring the role type of CSS
p{Style Property} p is a scope or another label for <table><input> and so on, p is just an example
Inheritance within a document is less than the precedence of inheritance within a segment, so it takes precedence over the paragraph, so at the same time the <p> style, the first source executes the global style, the second executes the paragraph style
Out-of-document inheritance
Role file referencing CSS file styles
Need to first create an additional suffix named CSS file
Edit a file to create a CSS style