
1. Internal
The 1st one is by placing the<style>
tag in the<head>
or in the<body>
.
if you placed in the body make sure it's after the opening
<body>
tag, so your styles will run for all the elements in the body.
This way is not for daily use or for big projects, because the html file will be complicated more and more.
2. External
The 2nd is by creating aCSS file and link it inside yourHTML .
In this example we created a CSS file namedstyle.css
and linked it using thelink
tag. put the path to your css file in thehref
.
3. Inline
The last way is the inline way. by adding thestyle
property inside any HTML tag you want to style.
The common used way for daily programming is theExternal way
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse