HTML Terms 1
HTML Terms 1
design studio
design studio
Definition Lists The last kind of list, definition lists are less common but useful. Most often they are used for a glossary, or frequently asked questions sections. A definition list is made up of three tags. <dl> - Defines that youre about to write a definition list. <dt> - Defines the content that it surrounds as a definition title. <dd> - Defines the content it surrounds as a definition description. This tag follows the <dt> tag but there can be more than one. Think of it as similar to paragraph. Formatting your HTML Be Consistent! Formatting your by indenting nested items is optional but makes it easier to read. Being able to match opening and closing tags by consistent formatting will be very helpful as your HTML gets more complicated. Nesting Tags Some tags are for defining each individual piece of content, like list items, and some HTML is there for defining much larger sections of content. To make it all work, you have to nest your HTML. HTML tags nest inside of each other like list tags. <div> <h1> <p> <p> <a> </h1> </p> <div> <h1>Your Headline</h1> <p> a paragraph following it.</p> <p> </p> </a> </p> <div> Diagraming these structures on paper can be really helpful, especially as your HTML gets more complicated. </div> <a href= http://mysite.com>Learn more </a>