DAY4 Notes
DAY4 Notes
HTML Tags
Tags are labels we use to mark up the beginning and end of an element.
All tags have the same format. They begin with ‘<’ sign and end with ‘>’ sign.
Paired Tags (These tags contain opening and closing tags). E.g. <p>Text to
Display</p>
Unpaired tags (These tags contain opening tags without a closing tag). E.g. <br/> or
<hr/>. Unpaired tags are also called as Empty Tags or Self Closing Tags.
</body>
</html>
The <strong> element is for content that is of greater importance, while the <b>
element is used to draw attention to text.
The <em> tag semantically emphasizes on the important word or section of words while
<i> tag is just offset text conventionally styled in italic.
<br/> Tag:
It is used to specify line breaks.
By using <br/> tag does not add space between paragraphs.
<br/> is an unpaired or empty tag.
Also can be written as <br>.
<hr/> Tag:
It is used to specify thematic breaks in the HTML document.
It is displayed as a horizontal rule.
<hr/> is an unpaired or empty tag.
Also can be written as <hr>.
<address> Tag: It is used to markup the address.
HTML Comments
Comments are used to create the project documentation.
Whatever is written inside the comment is not displayed by the browser.
Single Line Comment: <!-- This is a comment -->
Multi Line Comment:
<!--
<p>Introduction to HTML</p>
<p>HTML stands for hypertext markup language</p>
-->