in HTML by
Q:

Explain the three main ways to apply CSS styles to a web page

1 Answer

0 votes
by

Using the inline style attribute on an element

<div>
    <p style="color: maroon;"></p>
</div>

Using a <style> block in the <head> section of your HTML

<head>
    <title>CSS Refresher</title>
    <style>
        body {
            font-family: sans-serif;
            font-size: 1.2em;
        }
    </style>
</head>

Loading an external CSS file using the <link> tag

<head>
    <title>CSS Refresher</title>
    <link rel="stylesheet" href="/css/styles.css" />
</head>
Click here to read more about HTML
Click here to read more about Insurance

Related questions

0 votes
asked Oct 24, 2019 in HTML by SakshiSharma
0 votes
asked Oct 24, 2019 in HTML by SakshiSharma
0 votes
asked Jan 29 in HTML by rajeshsharma
0 votes
asked Aug 17, 2020 in HTML by RShastri
0 votes
asked Oct 24, 2019 in HTML by SakshiSharma
0 votes
asked Feb 11, 2020 in HTML by rahuljain1
...