HTML important codes

HTML works in a very simple, very logical, format. It reads like you do, from top to bottom, and left to right. That's important to remember. HTML is written with normal old text. What you use to set certain sections apart as headings, subtitles, bold text, underlined text, etc is a series of what we call "tags".
Think of tags as making your structure. Let's say you want a heading. You will put a tag at the exact point you want the heading to start and another tag where you want the heading to stop. If you want a specific word to be emphasized, you will place a start emphasis tag at the beginning of the word and an end emphasis tag at the end of the word. Is this making sense so far? Later we will discuss using Cascading Style Sheets (CSS) to do the same thing, but for now we are concentrating on HTML, so back to the lesson!
All tag (I sometimes call them command) formats are the same. They begin with a less-than sign: < and end with a greater-than sign: >. Always. No exceptions. What goes inside the < and > is the tag. Learning HTML is learning the specific tags needed to perform whatever command you want to do. Here's an example:
The tag for a paragraph is "p". That makes sense. For example:
<p>Joe</p>
In the old HTML standards, we used to use B for bold, and I for italics, etc. With the latest standards it is now accepted practice to separate content from presentation - by which we mean you set out the structure of your document in HTML, and control how it displays using a CSS file (again, more on CSS here!)
This means we can mark our keywords using strong and em tags, which have the same effect, but comply with the latest standards.
<strong>Joe</strong> and <em>Burns</em>


Comments