Current entity linking methods typically first apply a named entity recognition (NER) model to extract a named entity and classify it into a predefined category, then apply an entity disambiguation model to link the named entity to a corresponding entity in the reference knowledge base. However, these methods ignore the inter-relations between the two tasks. Our work jointly optimizes deep neural models of both NER and entity disambiguation. In the entity disambiguation task, our deep neural model includes a recursive neural network and convolutional neural network with attention mechanism. Our model compares similarities between a mention and candidate entities by simultaneously considering semantic and background information, including Wikipedia description pages, contexts where the mention occurs, and entity typing information. The experiments show that our model can effectively leverage the semantic information of context, and performs competitively to conventional approaches.