148k views
2 votes
Define the HTML tags needed to write CSS rule, inside of those HTML tags define a CSS rule using internal CSS requirements for color, type, size, and weight. Explain what your code would look like in an internet browser.

User Huayi Wei
by
5.3k points

1 Answer

4 votes

You can use internal style definitions with the <style> tag:

<style>

body {

color: red;

font-style: italic;

font-size: 12pt;

font-family: Arial;

font-weight: bold;

}

</style>

This gives you red italic text of 12pt using the Arial font.

User Sanjay Kumar N S
by
5.8k points