Using CSS ID Tags to


Joined
Apr 21, 2020
Messages
3
Reaction score
0
Dear Colleagues,

I am trying to capitalize the text 'Giants & Heroes', but it is still appearing as lowercase. I would grateful if someone could tell me where I am going wrong in the highlighted code. Thank you

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Targeting an individual</title>
<style>
#heading {
font-family: Arial;
background-color: red;
color: white;
}
<style>
#uppercase {
text-transform:uppercase;
}


</style>
</head>
<body>


<div id="heading">

<h1>Sporting History</h1>

<p id="uppercase">Giants & Heroes</p>

</div>
 
Ad

Advertisements

Ad

Advertisements

Joined
Apr 21, 2020
Messages
3
Reaction score
0
Sunfighter, thank you - much appreciated. I presumed you had to open with a style tag each time you target a different ID with CSS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Style Tag Problem 1
Justify-content not working 1
Help needed with code 5
HTML Site Problems 10
Why <link/> is not working? 4
Horizontal menu bar header 2
Popup HTML help 5
HTML Aligning social media icons 2

Top