# Build a Newspaper Article - Build a Newspaper Article

**URL:** <https://forum.freecodecamp.org/t/build-a-newspaper-article-build-a-newspaper-article/774815>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [January 21, 2026, 9:10am UTC](https://forum.freecodecamp.org/t/build-a-newspaper-article-build-a-newspaper-article/774815 "2026-01-21T09:10:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faris1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/faris1/32/372904_2.png) [@Faris1](https://forum.freecodecamp.org/u/Faris1)\
**Post date:** [January 21, 2026, 9:10am UTC](https://forum.freecodecamp.org/t/build-a-newspaper-article-build-a-newspaper-article/774815/1 "2026-01-21T09:10:35Z")

</div>

### Tell us what’s happening:

Hello, this code in the newspaper project is not passing whatever I do, i think the errors is very common property which every developer uses a lot!!

### Your code so far

```html
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Newspaper Article</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <div class="newspaper">
      
      <h1 class="name">NewsPaper Name</h1>
      <p class="date">June,2024</p>
      <h2 class="headline">Breaking: Grandma Edna Saves Earth</h2>
      <div class="sub-headline"</div>
      <div class="author">
      <p>By Jane Doe</p>
      </div>     
   <p class="text">In an extraordinary twist of fate, Grandma Edna found herself at the forefront of a potential crisis when her clever Wi-Fi security measures unexpectedly thwarted an alien invasion. As alien spacecraft descended upon the town, panic spread until Grandma Edna calmly intervened, resetting her router with a cryptic passphrase known only to her.</p>
      <p class="text">
The aliens, encountering unforeseen technological barriers, struggled to breach Grandma Edna's fortified network. Frustrated and bewildered, they eventually retreated to reassess their invasion strategy, leaving residents both relieved and amazed at Grandma Edna's resourcefulness.</p>

    </div>
  </body>
</html>

```

```css
/* file: styles.css */
html{
  font-size:24px;
}
.newspaper{
  font-size:16px;
  font-family:"Open Sans","sans-serif";
}
.name{
  font-size:2rem;
  font-family:"Times New Roman","serif";

}
.name,.author{
    text-transform: uppercase;
}
.headline{
  font-size:2em;
}
.sub-headline{
  font-weight:100;
  font-size:1.5em;
  font-style:italic;
}
.author{
  font-weight:bold;
}
.text{
  text-indent:20px;
  line-height:2em;
  
}

.text::first-letter {
font-weight:bold;
font-size:2em;
}

```

### Your browser information:

User Agent is: `Mozilla/5.0 (iPad; CPU OS 26_2_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/143.0.7499.151 Mobile/15E148 Safari/604.1`

### Challenge Information:

Build a Newspaper Article - Build a Newspaper Article

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-newspaper-article/build-a-newspaper-article)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![bappyasif](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bappyasif/32/190571_2.png) [@bappyasif](https://forum.freecodecamp.org/u/bappyasif)\
**Post date:** [January 21, 2026, 9:22am UTC](https://forum.freecodecamp.org/t/build-a-newspaper-article-build-a-newspaper-article/774815/2 "2026-01-21T09:22:17Z")

</div>

> [@Faris1](#):
>
> `font-family:"Open Sans","sans-serif";`

- keep sans serif without quotation mark

that will resolve your test case 4

> [@Faris1](#):
>
> ewspaper project is not passing whatever I do

- read those test cases and adjust your css according to those

happy coding 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [February 18, 2026, 9:23am UTC](https://forum.freecodecamp.org/t/build-a-newspaper-article-build-a-newspaper-article/774815/3 "2026-02-18T09:23:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
