DEV Community

Karthick (k)
Karthick (k)

Posted on

Core HTML & GitLab

22-05-2026
^^ How to link an external CSS to HTML?
&To Link an external CSS file to an HTML Document, you need to use the element within the

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
Enter fullscreen mode Exit fullscreen mode

Ex:

^. Fit-Content:
& The fit-content sizing keyword represents an element size that adapts to its content while staying within the limits of its container.

& When  fit-content is set, the element grows or shrinks to fit its content, but stops expanding after the relevant dimension reaches the size limit of its
container.


ex:width: fit-content;
Enter fullscreen mode Exit fullscreen mode

^. text-decoration CSS property
& the text-decoration property is used to control the decoration of text, such as underlines, overlines, line-throughs, and blink effects. This property accepts values like none, underline, overline, and line-through, and inherits to style text decorations accordingly.

^. git add

& The git add command stages specific files or changes so they can be included in the next commit.
ex: git add filename.txt.
Enter fullscreen mode Exit fullscreen mode

^. Git Commit
& git commit saves a snapshot of staged changes into the Git repository, creating a point in history that helps track and manage project progress.

ex: git commit -m "Initial commit"
Enter fullscreen mode Exit fullscreen mode

^. Git push:
& git push uploads commits from the local repository to a remote repository so that changes become available to other collaborators.

Top comments (0)