Basic HTML Hyper text markup Language
What is one of the most important lessons for a developer?
Debugging tips Divide and Conquer – divide a big problem into smaller problems and solve each piece Test your code incrementally – write a small piece of code. Test it. Write next piece of code. Test both pieces of code. Fix one problem at a time
Debugging
HTML debugging tips Does this page have an tag? Does every open tag have a corresponding closing tag? Are the tags nested correctly? Use tools like
. Must be the first line of your HTML document Before tag Specifies the version of HTML used specifies HTML 5 Required if you use a validator
Find bugs in this piece of code. debug html Introduction to HTML debugging
Find bugs in this piece of code. Introduction to HTML debugging
Find bugs in this piece of code Tags and Attributes
Find bugs in this piece of code Charles Dickens Charles John Huffam Dickens (7 February 1812 born 9 June 1870) was an English novelist, generally considered the greatest of the Victorian period. Life Early years Charles Dickens was born in Landport, Hampshire, on 7 February 1812, to John and Elizabeth Dickens. He was the second of their eight children
Code hygiene Please add comments to describe sections of your code. It will help you and me understand your code better Correct alignment of code. makes code easy to understand Makes Debugging easier
After applying basic code hygiene, the previous piece of code, has been split into two slides
Charles Dickens Charles John Huffam Dickens (7 February 1812 born 9 June 1870) was an English novelist, generally considered the greatest of the Victorian period. Life Early years
Charles Dickens was born in Landport, Hampshire, on 7 February 1812, to John and Elizabeth Dickens. He was the second of their eight children
Pick up next few pieces of code and clean it.
Journalism and early years In 1833, Dickens' first story, A Dinner at Poplar Walk was published in the London periodical, Monthly Magazine
First visit to America In 1842, Dickens and his wife made his first trip to the United States and Canada During his visit, Dickens spent a month in New York City, giving lectures, raising support for copyright laws, and recording many of his impressions of America