Your Ad Here
Showing posts with label HTML TAG STRUCTURE. Show all posts
Showing posts with label HTML TAG STRUCTURE. Show all posts

HTML TAG STRUCTURE


HTML tags can be distilled into this syntax:
<tagname attribute="value"></tagname>
Th e tag always has a tag name, may have an attribute, and when there is
an attribute, the best practice is to always give the attribute a value.
Keep this syntax in mind for later; being able to recognize patterns like this
one makes it easy to detect when tags fall outside the pattern.
Here’s a little quiz for you. What’s wrong with the HTML tag below?
<p class, highlight>Hunting for clues</p>
I know you caught it: the attribute and value were in the wrong format.
Rather, it should be like this:
<p class="highlight">Clues found!</p>
Th e CSS pattern is analogous, which you will soon see. With both HTML and
CSS, once you have the patterns down, you’ll be able to recognize them and
know when a tag or a style declaration has gone wrong.

Popular Posts

Recent posts