DEV Community

Karthick (k)
Karthick (k)

Posted on

Core HTML & GitLab

22-05-2026

1. How to link an External Css to HTML?
    &To Link an external CSS file to an HTML Document, you need to use the <link> element within the <head> section of your Html file.

    & the<link> elemehttps://css-tricks.com/fit-content-and-fit-content/nt should have the  rel attributes set to "stylesheet" and the href attribute specifying the path to your css file.
    ex:
        <link rel="stylesheets" href="path/to/your/styles.css">
Enter fullscreen mode Exit fullscreen mode

Top comments (0)