How do you use the list-style-type in html to show in the website when it is CSS? I have tried multiple times but it doesn’t show if I input at CSS or at HTML
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 18_4_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/133.0.6943.120 Mobile/15E148 Safari/604.1
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My First Website</title>
</head>
<body>
My First Website
<p>I am learning how to code</p>
<p><strong>I would use it to create my own tech company</strong> <em>that would marvel the world</em></p>
<!-- <em> is used to italize a text -->
<!-- this is an ordered list -->
<ol>
<li>List 1</li>
<li>List 2</li>
<li>List 3</li>
</ol>
</body>
</html>
body {
font-size: 15pt;
}
ol {
list-style-type: upper-alpha;
background-colour: pink
}
I’m trying to change the ordered list from numbers to something else using the below code but it’s not working and Ordin didn’t really make it clear how he did it from where I sit
I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.