How to link css to html?

link css to html

Asked on September 28, 2021 in Website.
Add Comment
  • 1 Answer(s)

    An external style sheet is used to define the style for many HTML pages.

    To use an external style sheet, add a link to it in the <head> section of each HTML page:

    Example

    <!DOCTYPE html>
    <html>
    <head>
    <link rel=”stylesheet” href=”styles.css”>
    </head>
    <body>

    <h1>This is a heading</h1>
    <p>This is a paragraph.</p>

    </body>
    </html>

    Answered on September 28, 2021.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.