Skip to content

Css in articles #338

Open
Open
@rf-alvs

Description

Hello, I would like to answer a question. Creating an article in OpenKB I realized that I can put CSS inline, but I was not able to put internal CSS and neither the external one. I would like to know if he really only accepts the inline or if I am making a mistake.

Follows unsuccessful examples of external CSS:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="E:/Rafael Alves/CSS/styles_janela.css">
<title>Menu lateral em CSS</title>
</head>
<body>
<div id="conteudo">
<h1>Menu lateral em CSS</h1>
</div>
<div id="menu">
<ul>
<li><a href="link1.htm">link1</a></li>
<li><a href="link2.htm">link2</a></li>
<li><a href="link3.htm">link3</a></li>
<li><a href="link4.htm">link4</a></li>
<li><a href="link5.htm">link5</a></li>
</ul>
</div>
</body>
</html>

Follows unsuccessful examples of the internal CSS:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
h1 {
color: red;
}
</style>
</head>
<body>
<h1>Olá mundo</h1>
</body>
</html>

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions