To piggy back, in the realm of researching the show you want to write for, be sure you read and read the scripts. Watching the show isn't enough. As shown here: http://www.defectiveyeti.com/archives/002477.html
Writing For Television - Part Two: The Practice of Television Writing
by David Jimerson
with very helpful guidance from Jane Espenson, writer of Battlestar Galactica and Buffy the Vampire Slayer
In Part 1 of this article, we got into the creative process behind writing a television spec script. This time around, we’ll explore the profession and what it’s like – how it’s different from writing feature films, common misconceptions, getting in, and climbing the ladder.
PART 2: THE PRACTICE OF TELEVISION WRITING
The process of writing for television is not the same as writing for feature films. It’s not a solitary experience where you work mostly alone on a story you dreamed up and developed on your own, and then turn it over to be...