HTML Tags: <b>, <strong>, <i>, <em>, <dl>, <dt>, <dd> PDF
Document Details
Uploaded by ImpressiveElm7721
Tags
Summary
This document provides short notes on HTML tags, focusing on semantic differences between bold (<b> vs. <strong>) and italic (<i> vs. <em>) tags, along with definition lists (<dl>, <dt>, <dd>). It explains the use of each tag and emphasizes the importance of semantics in web development.
Full Transcript
Difference between and tags: Semantic meaning: tag: This tag is used to make text bold, but it does not convey any additional semantic meaning. It simply applies a bold style to the text. tag: This tag is used to indicate that the enclosed text has strong importance, emphasis, or seriousness. I...
Difference between and tags: Semantic meaning: tag: This tag is used to make text bold, but it does not convey any additional semantic meaning. It simply applies a bold style to the text. tag: This tag is used to indicate that the enclosed text has strong importance, emphasis, or seriousness. It conveys a semantic meaning beyond just the visual appearance. Usage: tag: Use this tag when you want to make text bold, but the emphasis or importance of the text is not the primary concern. tag: Use this tag when you want to emphasize the importance or seriousness of the text, and the visual appearance of bold is a secondary concern. Difference between and tags: Semantic meaning: tag: This tag is used to make text italic, but it does not convey any additional semantic meaning. It simply applies an italic style to the text. tag: This tag is used to indicate that the enclosed text should be emphasized or stressed. It conveys a semantic meaning beyond just the visual appearance. Usage: tag: Use this tag when you want to make text italic, but the emphasis or stress of the text is not the primary concern. tag: Use this tag when you want to emphasize or stress the importance of the text, and the visual appearance of italic is a secondary concern. Definition Tags The definition tags in HTML are used to create definition lists, which are used to display a term and its corresponding definition. The main tags used for definition lists are: (Definition List): This tag is used to create the definition list container. (Definition Term): This tag is used to define the term being defined. (Definition Description): This tag is used to provide the definition or description of the term.