How to use internal CSS (Style Sheet) in HTML?

HTMLWeb DevelopmentFront End Technology

CSS can be used in various ways in HTML. One of them is by using Internal CSS i.e. using a <style> tag. The <style> tag is used in the <head>…</head> tag. It defines CSS style for a single page.


You can try to run the following code to use internal CSS in HTML −

<!DOCTYPE html>
         h1 {color: red;}
         p {font-size: 12px;}
      <p>We provide free tutorials for engineers and professional.</p>
Updated on 15-Jun-2020 08:02:14