" symbol. Examples include
Image description, and ."> " symbol. Examples include
Image description, and ."> " symbol. Examples include
Image description, and .">

<aside> 💡 In HTML, void elements are self-closing tags that do not enclose any content and can be defined using a single tag with a trailing slash before the closing ">" symbol. Examples include <hr/><img src="image.jpg" alt="Image description"/>, and <input type="text" name="username">.

</aside>

Horizontal Rule

The <hr> element is used to create a horizontal rule or separator between sections of a webpage. It indicates a change in topic or context and visually divides content into distinct areas.

<h2>Childhood Memories</h2>
<p>I remember...</p>
<hr>
<h2>Teenage Years</h2>
<p>As I grew older...</p>
<hr>
<h2>Adulthood Adventures</h2>
<p>Nowadays...</p>

Break Element

The <br> element in HTML is used to insert a line break, allowing you to start a new line of text. This is particularly useful when you want to separate content without starting a new paragraph. Here's an example:

<p>This is the first line.<br>This is the second line after the line break.</p>

Paragraph Element

The <p> tag in HTML is used to define a paragraph. Paragraphs are blocks of text separated from adjacent blocks, allowing for better structure and readability of the content on a webpage. The browser typically adds some space (margin) before and after a paragraph to distinguish it from other elements.

<p>This is the first paragraph. It contains some text that is grouped together.</p>
<p>This is the second paragraph. It is separate from the first paragraph and contains its own block of text.</p>

Activity

Write HTML for the following letter and display it in the right formatting (as displayed):

Jameel Shah,
Model Town, Block Z,
Lahore, Punjab.
[email protected]
0300-XXX00XX
June 26, 2024

Dr. Mansoor Waqas
Principal
ABC College,
Wapda Town, Block X,
Lahore, Punjab

Dear Dr. Mansoor,

I hope this letter finds you well. I am writing to express my growing concern about the security measures currently in place at our college. As a dedicated student, I deeply value the safe and supportive environment that our institution strives to provide. However, recent incidents on campus have raised significant apprehensions among the student body regarding our overall security.

Over the past few weeks, there have been reports of unauthorized individuals gaining access to our campus facilities. Additionally, several students, including myself, have observed areas around the campus where lighting is inadequate, making these spots potentially dangerous during the evening hours. These issues have understandably led to a heightened sense of vulnerability among students.

I kindly request a meeting with you or the appropriate security personnel to discuss these concerns and potential solutions further. I am confident that, together, we can create a more secure and reassuring environment for everyone at college.

Thank you for your attention to this matter. I look forward to your prompt response.

Yours sincerely,

Jameel Shah,
20FSCM2002

Here’s the expected outcome:

Untitled