-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path02-Elements de bases.html
More file actions
25 lines (23 loc) · 1.33 KB
/
02-Elements de bases.html
File metadata and controls
25 lines (23 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>02-Elements de bases</title>
</head>
<body>
<h1>This is an h1, it's better to have only one h1 in your page </h1>
<h2>This is an h2</h2>
<h3>This is an h3</h3>
<h4>This is an h4</h4>
<h5>This is an h5</h5>
<h6>This is an h6</h6>
<p>This is a paragraph which is a block element, meaning it creates a block-level box, starts on a new line, and stretches the full width of its container.</p>
<pre>The 'pre' element in HTML is used for preformatted text, preserving both spaces and line breaks, making it suitable for displaying code or text with a fixed-width font.</pre>
<a href="https://www.google.com/">A link for google, </a><br>
<p>br is used for a new line</p>
<p> tha a tag is an inline element, meaning it does not start on a new line and only occupies as much width as necessary within the flow of the text.</p>
<p>The `img` tag in HTML is an inline-level element used for embedding images. It requires the `src` attribute for the image source and can include optional attributes like `alt` for alternative text and `width`/`height` for dimensions.</p>
<img src="eberhard-grossgasteiger-YI9fiqgs9Nk-unsplash.jpg" alt="an image">
</body>
</html>