Skip to content

Commit

Permalink
html basics merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavenly-Dao committed Aug 6, 2024
1 parent cffc41a commit 136d87c
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 0 deletions.
140 changes: 140 additions & 0 deletions HTML BASICS-.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Basics for Newbies</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
}
nav {
background: #444;
color: #fff;
padding: 10px;
text-align: center;
}
nav a {
color: #fff;
margin: 0 10px;
text-decoration: none;
}
header, section {
padding: 20px;
margin: 10px;
}
header {
background: #333;
color: #fff;
}
section {
background: #f4f4f4;
}
h2 {
color: #333;
}
.highlight {
background: #ffeb3b;
}
.important {
background: #e91e63;
color: #fff;
}
.info {
background: #2196f3;
color: #fff;
}
.link-buttons {
text-align: center;
margin: 20px 0;
}
.link-buttons a.button {
display: inline-block;
background: #4caf50;
color: #fff;
border: none;
padding: 10px 20px;
margin: 5px;
text-decoration: none;
cursor: pointer;
text-align: center;
}
.link-buttons a.button:hover {
background: #45a049;
}
</style>
</head>
<body>
<nav>
<a href="https://heavenly-dao.github.io/Main-site/" target="_blank">My Site</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
<header>
<h1>HTML Basics for Newbies</h1>
<p>A beginner-friendly guide to essential HTML knowledge.</p>
</header>

<section>
<h2>Things You Will Always Use</h2>
<ul>
<li><strong>&lt;!DOCTYPE html&gt;</strong> - Defines the document type.</li>
<li><strong>&lt;html&gt;</strong> - Root element of an HTML page.</li>
<li><strong>&lt;head&gt;</strong> - Container for meta-data.</li>
<li><strong>&lt;title&gt;</strong> - Title of the page.</li>
<li><strong>&lt;body&gt;</strong> - Container for the content of the page.</li>
<li><strong>&lt;h1&gt; to &lt;h6&gt;</strong> - Headings, with &lt;h1&gt; being the largest.</li>
<li><strong>&lt;p&gt;</strong> - Paragraph.</li>
<li><strong>&lt;br&gt;</strong> - Line break.</li>
</ul>
</section>

<section class="highlight">
<h2>Things You Will Likely Use</h2>
<ul>
<li><strong>&lt;a href="URL"&gt;&lt;/a&gt;</strong> - Anchor tag for links.</li>
<li><strong>&lt;img src="image.jpg" alt="description"&gt;</strong> - Image tag.</li>
<li><strong>&lt;button&gt;&lt;/button&gt;</strong> - Button tag.</li>
<li><strong>&lt;input type="text"&gt;</strong> - Input tag.</li>
<li><strong>&lt;form action="URL"&gt;&lt;/form&gt;</strong> - Form tag.</li>
<li><strong>&lt;label for="id"&gt;&lt;/label&gt;</strong> - Label tag.</li>
<li><strong>&lt;select name="name" id="id"&gt;&lt;/select&gt;</strong> - Select tag.</li>
</ul>
</section>

<section class="important">
<h2>Useful but Not Always Needed</h2>
<ul>
<li><strong>&lt;div&gt;&lt;/div&gt;</strong> - Division or section in an HTML document.</li>
<li><strong>&lt;span&gt;&lt;/span&gt;</strong> - Inline container for text.</li>
<li><strong>&lt;table&gt;&lt;/table&gt;</strong> - Table tag.</li>
<li><strong>&lt;ul&gt;&lt;/ul&gt;</strong> - Unordered list.</li>
<li><strong>&lt;ol&gt;&lt;/ol&gt;</strong> - Ordered list.</li>
<li><strong>&lt;li&gt;&lt;/li&gt;</strong> - List item.</li>
<li><strong>&lt;header&gt;&lt;/header&gt;</strong> - Header section.</li>
<li><strong>&lt;footer&gt;&lt;/footer&gt;</strong> - Footer section.</li>
</ul>
</section>

<section class="info">
<h2>Advanced Elements</h2>
<ul>
<li><strong>&lt;article&gt;&lt;/article&gt;</strong> - Self-contained content.</li>
<li><strong>&lt;aside&gt;&lt;/aside&gt;</strong> - Content aside from the main content.</li>
<li><strong>&lt;details&gt;&lt;/details&gt;</strong> - Additional details the user can view or hide.</li>
<li><strong>&lt;summary&gt;&lt;/summary&gt;</strong> - Summary for the &lt;details&gt; element.</li>
<li><strong>&lt;figure&gt;&lt;/figure&gt;</strong> - Specifies self-contained content.</li>
<li><strong>&lt;figcaption&gt;&lt;/figcaption&gt;</strong> - Caption for the &lt;figure&gt; element.</li>
</ul>
</section>

<div class="link-buttons">
<a href="https://example.com/learn-more" class="button">Learn More</a>
<a href="https://example.com/get-started" class="button">Get Started</a>
<a href="https://discord.gg/ahuy4a7tXa" class="button">Discord Server</a>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions link.htm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ <h1 style="color:#7736d9">Link Directory</h1>
<a href="doc.htm" class="link" target="_blank">Gooo Gel Doocs</a>
<a href="sub_projects/hex.htm" class="link" target="_blank">Hex Colors</a>
<a href="sub_projects/gradient.htm" class="link" target="_blank">Gradient Generator</a>
<a href="HTML BASICS-.html" class="link" target="_blank">HTML BASICS</a>
</div>
</body>
</html>

0 comments on commit 136d87c

Please sign in to comment.