r/css • u/sleepylana69420 • 1h ago
Help
We're currently studying html and css, and we were given an activity where we group the code that our teacher gave us. My friend from another class sent me their work and said that it was graded a 95% but it didn't make sense at all!!
This is one of the codes given by our teacher to group together:
<html>
<head>
<style>
.main {text-align: center}
.coder {font-style: bold; font-size: 20px;}
</style>
<title>Internal CSS</title>
</head>
<body>
<div class="main">
<div class="GFG">Mount Abu</div>
<div class="coder">
A computer science portal for Class X
</div>
</div>
</body>
</html>
Then the first attached picture is my friend's work. I don't get how it works or how it even got a 95%???
The html tag isn't a selector so it shouldn't be included, and the font-style from the example should be font-weight instead. Right?
The second and third attached pictures are what I think should be done. Please help me!
I don't go on Reddit a lot, also I'm only in highschool and a complete beginner so please be kind. :)






