HTML stands for HyperText Markup Language. It is the standard language used to create and structure the content of a webpage.
This is a free piece of software from Microsoft that you will use to write your code.
1: The Heading (<h1> to <h6>)What it is: Headings are tags used to define titles and subtitles on your page. They are crucial for creating a logical hierarchy and outline for your content.
|
<h1>Heading 1</h1>
|
2: The Paragraph (<p>)What it is: The paragraph tag is the most common tag you'll use. It's for grouping sentences and blocks of text together. The Purpose: To define a distinct paragraph of text. Browsers automatically add space before and after a <p> element, separating it from other content. Avoid multiple line breaks; use multiple <p> tags instead. |
<p>This is the first paragraph. It contains several sentences about a topic.</p>
|
3: HTML Horizontal RulesThe <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule. The <hr> element is used to separate content (or define a change) in an HTML page: |
<p>This is the first topic.</p>
<hr />
|
4. The Line Break Tag: <br>This tag tells the browser, "Stop writing on this line and immediately start on the next one." It's like hitting the Enter key once in a poem or an address. |
<p>221B Baker Street<br>
|
5. List Elements (<u>, <ol>, <li>)What it is: These tags are used to create lists. This is a perfect example of nesting.
|
<ul>
|
6: 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. HTML Links - The target Attribute
|
<a href="https://www.coderarmy.in/">Visit Coder Army</a>
|
8. The Image Tag (<img>)
|
<img src="https://cdn.britannica.com/16/234216-050-C66F8665/beagle-hound-dog.jpg" height="300px" width="300px" alt="This is Dog Photo">
|