The previous answer beautifully and accurately analyzed Wilde's texts in terms of his preferred writing styles and his predilection of genres. My answer will therefore try to answer the same question but from the point of view of Wilde's biography and how it blends in perfectly with specific works of his. Most of this information can be found in the superb biography written by Wilde's grandson, Merlin Holland, The Scarlet Marquess and the Irish Peacock, which I strongly recommend.
There is, indeed, a lot of personal value at stake in specific texts by Wilde, particularly when you look at :
- The Portrait of Mr. W.H. (story published in Blackwood Magazine in 1889)
- The Picture of Dorian Gray (first a story, then a novel, 1890)
- The Importance of Being Earnest (play, St. James's Theater, 1895)
- An Ideal Husband (play, also 1895)
- Lady Windermere's fan (play, 1892)
The works produced six years prior to Wilde's conviction, aside from being his most popular works, are also works that feature the same conflicting issues that were going on in Wilde's life. This time period also coincides with the chaotic relationship between Wilde and Alfred Douglas. It is the latter's father, the Marquis of Queensberry, who would cause Wilde's conviction.
This being said, all of these works feature major salient themes that were also preoccupying Wilde:
- criticism of women
- fear of consequences
By 1895, Wilde had been blackmailed by Charles Parker and Alfred Wood (and others) over some sensually-suggestive letters that Wilde had sent to Lord Alfred Douglas, his off and on love interest.Under the Criminal Law Amendment Act, homosexual relations were considered illegal and punishable with a maximum sentence of two years of hard labor. That is exactly what Wilde was accused off eventually in 1895, and that was the sentence that he served.
In Dorian Gray and An Ideal Husband, and Lady Windermere the topic of blackmail is mentioned and talked about in ways that reflected Wilde's own knowledge about these things.
Excess and consequences
During this time it is argued that Wilde was also acting completely out of character by excessively consuming food and drink. By the time of his trial, he was overweight and many say that he was drinking uncontrollably. He was also spending excessively on his (male) love interests and on page boys.
All of this got him in a huge pickle with creditors (much like Ernest Worthing did in The Importance of being Earnest). He eventually lost everything he owned when his assets were seized by the government after his imprisonment.
The characters of Jack (Ernest), his friend Algernon Moncrief, Dorian Gray, Lord Henry Wotton, Lord Goring and Lord Darlington are all excessive individuals who are always chased by the consequences of their actions. All the 90-95 works also show Wilde's high preoccupation with the topic of "consequences".
Prior to his conviction, Wilde had been accused of corrupting young men. In The Picture of Dorian Gray, the character of Lord Henry is Wilde's mouthpiece, spreading Wilde's own ideas about the "modern hedonism" that corrupts Dorian into horrid acts that reflect in his painted image. Similarly, the dandies Moncrieff, Darlington and Wotton clearly are amoral therefore they have either already corrupted someone or will corrupt someone else.
Homoeroticism and criticism of women
Homoeroticism and criticism of women permeates each and every one of these 90-95 works. "The Portrait of Mr. W.H." talks about Shakespeare's love fixation with a young unknown male whose initials are "W.H."
Dorian Gray talks about the main character reading a "certain book" that influences him in a way that he starts to corrupt all young men who deal with him (Wilde was surreptitiously referring to Huyssman's A Rebour which is a homoerotic novel).
Women are consistently criticized or mocked. Lady Bracknell is a snob, Cecily and Gwendolen are conniving airheads, Mrs. Cheveley is a con artist, Sybil Vane is a weakling, Lady Wotton is "unkempt", and in general, men prefer to hang out close together without the annoying presence of their female counterparts.
Even in The Importance of Being Earnest the male characters do a lot of naughty deceiving before they finally fall in love with their respective female love interests.
Therefore, shortly before Wilde was arrested and accused, he had already put a lot of his own life onto his works, presumably because he was aware that something was going to happen eventually. Others say it is because he had a penchant for self-sabotage and wanted to give himself away for once and for all. Regardless the cause, it is certainly something to consider given the consistent way in which he presents these themes over and over.
Oscar Wilde's works include a wide range of nonfiction, plays, a novel, and poems. In these works he expresses a consistent ideological position that art should be independent of morality, and has no duty to preach at or improve its audience, but rather exists for its own sake (thus the phrase "art for art's sake"). The aesthetic experience for Wilde was unique and valuable for itself; in a way Wilde is a follower of the Kantian notion that art has purposiveness but not purpose.
One theme common across many of Wilde's works is the antagonism between the artist and bourgeois society. He followed many of the French artists and writers of the "symbolist" or "decadent" movement in believing that a wide range of sensual and other experiences can contribute to artistic creation, and no aspect of human experience is remote from art, but rather all experiences from the most elevated to the most squalid are legitimate subjects for the arts; what distinguishes art from that which is not art is aesthetic quality.
Many of Wilde's works have veiled references to homoeroticism. After he was released from Reading Gaol, and converted to Roman Catholicism, he did write works which engage more strongly with religion than his early oeuvre.
In terms of literary technique, Wilde is renowned for his wit, and especially for paradoxical aphorisms.
Oscar Wilde's is a curious modernism where the category of the neo-romantic is very much at work. His humour is also a typically Irish humour. As far as Wilde's plays are concerned, his major style is one of social satire, critiquing social issues, the practice of false manners and hypocrisy, the fraudulent identities, the relation and rapport of the sexes, the social conventions of love and so on. If we look at Importance of Being Ernest, the theme of a fluid unfixed identity, the critique of a Platonic myth of love and bond, the pattern of poetic justice in the world and the issues of heredity in personality development--these are the issues handled in the text. In many of Wilde's stories, he uses the parabolic and fabular tropes as in The Happy Prince and The Rose and Nightingale. Written in French, a play like Salome is testimony to his surrealist style and dark themes of envy and sexuality. The Picture of Dorian Gray, Wilde's only novel is an autobiographical text which apart from other things, deals with his problematic sexuality and homoeroticism.