HTML: Tips and Tricks

  1. HTML Heading Levels and Sectioning Content

    You may have noticed that there is no difference in size between an h1 heading and h2 heading within an article or section element. That’s weird. In this article, I’ll explain why it is, and the current recommendation for HTML heading levels.

  2. How to Ask Good Technical Questions

    Being a techie means constant learning. Whether you’re a newbie web developer or an experienced programmer, you are bound to find yourself banging your head against a wall, trying to figure out why the new software you installed isn’t behaving correctly or why the program you just wrote is not working. Luckily, there are a lot of developers out there who are willing to help. But to get a good answer, you need to ask a good question. In this article, I give you some tips for how to ask good questions.

  3. How to Properly Nest Lists in HTML

    A nested list or a sublist is a list within a list. The trick to marking nested lists up correctly in HTML is to recognize that the sublist is actually a child of a list item and not of a list.

  4. How to Install and Use Visual Studio Code for Class

    Visual Studio Code is an excellent IDE to use when learning to develop web sites. It provides a nice balance of power and simplicity and it is available on Windows and Mac.

  5. How to Open HTML Files in Your Browser from Visual Studio Code

    Visual Studio Code doesn’t have a built-in method for launching HTML and other files in Google Chrome, but you can configure it to do so.

  6. How to Create a Simple HTML Document

    In this exercise, you will create your first HTML document by simply copying the text shown below. The purpose is to give you some sense of the structure of an HTML document.

  7. How to Work with Empty and Container Tags in HTML

    Generally speaking, HTML has two types of tags: empty and container. In this how-to, you'll learn the difference between the two.

  8. How to Mark Up a Citation in HTML

    In school, we all learn to write footnotes and bibliographies. On your web pages you should also cite your sources. HTML provides specific markup for doing so.

  9. How to Create an HTML Table

    HTML tables are created with the <table>, <thead>, <tbody>, <tfoot>, <tr>, <th>, <td>, and <caption> tags.

  10. How to Force a Refresh of favicon.ico

    I ran into this problem while writing our Creating, Styling, and Validating Web Forms course. I was showing how browsers make an automatic request for "/favicon.ico" when first visiting a new site. However, once they've received the icon or determined it doesn't exist, they don't request it again on subsequent visits. That created a headache for me when trying to show how to deliver the icon. Unfortunately, it's not easy to force the browser to refresh the favicon.ico, but it's doable.