Is content writing for blog or website haram or halal?

I wanted to ask is content writing for a website or blog halal or haram as I think so they mainly earn from ads and there are some haram ads too. So will I be accountable for ads too that people see for reading my content.