-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cffc41a
commit 136d87c
Showing
2 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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><!DOCTYPE html></strong> - Defines the document type.</li> | ||
<li><strong><html></strong> - Root element of an HTML page.</li> | ||
<li><strong><head></strong> - Container for meta-data.</li> | ||
<li><strong><title></strong> - Title of the page.</li> | ||
<li><strong><body></strong> - Container for the content of the page.</li> | ||
<li><strong><h1> to <h6></strong> - Headings, with <h1> being the largest.</li> | ||
<li><strong><p></strong> - Paragraph.</li> | ||
<li><strong><br></strong> - Line break.</li> | ||
</ul> | ||
</section> | ||
|
||
<section class="highlight"> | ||
<h2>Things You Will Likely Use</h2> | ||
<ul> | ||
<li><strong><a href="URL"></a></strong> - Anchor tag for links.</li> | ||
<li><strong><img src="image.jpg" alt="description"></strong> - Image tag.</li> | ||
<li><strong><button></button></strong> - Button tag.</li> | ||
<li><strong><input type="text"></strong> - Input tag.</li> | ||
<li><strong><form action="URL"></form></strong> - Form tag.</li> | ||
<li><strong><label for="id"></label></strong> - Label tag.</li> | ||
<li><strong><select name="name" id="id"></select></strong> - Select tag.</li> | ||
</ul> | ||
</section> | ||
|
||
<section class="important"> | ||
<h2>Useful but Not Always Needed</h2> | ||
<ul> | ||
<li><strong><div></div></strong> - Division or section in an HTML document.</li> | ||
<li><strong><span></span></strong> - Inline container for text.</li> | ||
<li><strong><table></table></strong> - Table tag.</li> | ||
<li><strong><ul></ul></strong> - Unordered list.</li> | ||
<li><strong><ol></ol></strong> - Ordered list.</li> | ||
<li><strong><li></li></strong> - List item.</li> | ||
<li><strong><header></header></strong> - Header section.</li> | ||
<li><strong><footer></footer></strong> - Footer section.</li> | ||
</ul> | ||
</section> | ||
|
||
<section class="info"> | ||
<h2>Advanced Elements</h2> | ||
<ul> | ||
<li><strong><article></article></strong> - Self-contained content.</li> | ||
<li><strong><aside></aside></strong> - Content aside from the main content.</li> | ||
<li><strong><details></details></strong> - Additional details the user can view or hide.</li> | ||
<li><strong><summary></summary></strong> - Summary for the <details> element.</li> | ||
<li><strong><figure></figure></strong> - Specifies self-contained content.</li> | ||
<li><strong><figcaption></figcaption></strong> - Caption for the <figure> 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters