Código HTML
<!DOCTYPE html>
<html lang="en-col">
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML BASICS</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header></header>
<main>
<h1>Learning HTML</h1>
<h2>Intro</h2>
<p>Learning HTML is an essential first step in web development. It starts with understanding the basic structure of web pages, such as elements, tags, and attributes. Practice by creating simple web pages, gradually adding complexity by incorporating lists, tables, forms, and media. Consistent practice and experimenting with different projects solidify knowledge and build confidence in creating effective web content.</p>
<img src="img.jpeg" alt="HTML5">
<h3>Elements</h3>
<p>Here are five of the most important HTML elements, fundamental for creating the structure and content of web pages:</p>
<ul>
<li>
<strong><html></strong>: The root element of an HTML document. It wraps all the content on the entire web page.
<pre>
<!DOCTYPE html>
<html>
...
</html>
</pre>
</li>
<li>
<strong><head></strong>: Contains meta-information about the HTML document, such as its title, links to stylesheets, scripts, and other metadata.
<pre>
<html>
<head>
<title>Page Title</title>
</head>
</html>
</pre>
</li>
<li>
<strong><body></strong>: Encloses all the visible content on the web page, such as text, images, and other elements.
<pre>
<html>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
</pre>
</li>
<li>
<strong><div></strong>: A block-level element used to group together other HTML elements and apply CSS styles or JavaScript functions to them as a single unit.
<pre>
<div>
<h2>Section Title</h2>
<p>Some content here.</p>
</div>
</pre>
</li>
<li>
<strong><a></strong>: Defines a hyperlink, which is used to link from one page to another. The <em>href</em> attribute specifies the URL of the page the link goes to.
<pre>
<a href="https://www.example.com">Visit Example.com</a>
</pre>
</li>
</ul>
<p>These elements form the basic building blocks of most web pages, providing structure, style, and navigation. To get more information <a href="https://www.w3schools.com/html/html_basic.asp"> click here.</a> </p>
</main>
<footer>
<div>Copyright© 2024 - Created by Diego H. All Rights Reserved</div>
</footer>
</body>
</html>
Código CSS
body {
background-color: rgb(184, 206, 224);
color: rgb(11, 21, 31);
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
h1 {
font-size: 4ch;
text-align: center;
}
p {
font-size: 1.5ch;
}
ul {
font-size: 1.5ch;
}
pre {
font-size: 1.7ch;
}
a {
color: rgb(151, 5, 170);
text-decoration: none;
}
footer {
font-size: 1ch;
}