Sitemap
Nilax Suvisinth

Nilax Suvisinth

Internal CSS

1 min readSep 18, 2023

--

One of the most used CSS forms for updating, styling, and adjusting the distinctive characteristics of a single web page is internal CSS. By using the "style" element in the "head" section of an HTML web page, you can utilise the internal CSS.

Internal CSS can be used to style a single web page as a whole, but not multiple web pages. Multiple web pages can be styled using the same code.

How to Use Internal CSS?

Internal CSS is a way of adding the CSS codes in the <style> element of <head> section of the document.

All the changes done by the internal CSS can be applied only to a single web page. You can use internal CSS for one-page websites or projects where you do not want to use external CSS.

Example

<!DOCTYPE html>

<html>

<head>

Get Nilax Suvisinth’s stories in your inbox

Join Medium for free to get updates from this writer.

<style>

body {background-color: aliceblue;}

h1 {color: yellow;}

p {color: black;}

</style>

</head>

<body>

<h1>This is a heading of the HTML web page</h1>

<p>This is a paragraph for writing the content on the web page.</p>

</body>

</html>

--

--