This is a paragraph. It contains some text to demonstrate how paragraphs work in HTML. You can have multiple sentences in a paragraph, and it will automatically wrap the text to fit the width of the container.
use of horizontal rule (hr) tag is
to create a thematic break or a horizontal line to separate content on the page.
Here is another paragraph. You can also include bold and italic text within a paragraph to emphasize certain words or phrases.
use of break (br) tag is
to break the line in between.
- This is an unordered list item 1
- This is an unordered list item 2
- This is an unordered list item 3
- This is an ordered list item 1
- This is an ordered list item 2
- This is an ordered list item 3
The Anchor Tag (a)
What it is: The Anchor tag is what makes the web "hypertext." It is used to create a hyperlink to another webpage, a file, or a location within the same page.
The Purpose: To make text (or an image) clickable, allowing users to navigate. It requires an attribute called href (hypertext reference) to specify the destination URL.
This is a link to Example.comThe Image Tag (img)
What it is: The Image tag is a **self-closing tag** used to embed an image onto your page.
The Tag:
The Purpose: To display a visual image. It requires two main attributes:
- src (source): The path or URL to the image file. This is mandatory.
- alt (alternative text): A description of the image. This is vital for accessibility (screen readers for the visually impaired will read this out) and for when the image fails to load.