


Link the CSS file in your HTML file using tag in header section of HTML document.css extension (This file only will only contain the styling code.) Create a CSS file and save it using the.There are two files need to create to apply external CSS Ruchiwebsolutions is ajax jquery and javascript training company in hyderabad. If we have multiple HTML pages for an application and which use similar CSS, then we can use external CSS. We can use this CSS file in any HTML file by including it in HTML file using tag. Test it Now Note: In the above example, we have used a class attribute which you will learn in the next chapter.Īn external CSS contains a separate CSS file which only contains style code using the class name, id name, tag name, etc.
