Ready to delve into the world of web development with NeoCities, but feeling a bit underprepared with HTML? You've come to the right place! This comprehensive guide is here to help you get started with HTML on NeoCities,step by step, as we journey together from beginner to web designer.

By the end of this tutorial, you'll have a solid grasp of HTML basics and be well on your way to creating awesome websites on NeoCities. But first, let's ensure you have the right tools. For this, you'll need a text editor like Notepad (Windows) or TextEdit (Mac), and an internet browser to preview your work. Now, let's dive in!

NeoCities HTML Basics
Before we get started, let's ensure you understand the structure of an HTML file. Here's a simple layout you'll use:

<!DOCTYPE html> <html> <head> <title>Your Title</title> </head> <body> <p>Your content goes here</p> </body> </html>
Setting Up Your First Page

Create a new file, name it "index.html", and copy the code above into it. Open this file in your browser to see the outcome. It's blank because we haven't added any content yet. Let's fix that!
Change "Your content goes here" to something of your choice, like "Welcome to my NeoCities adventure!" and save the file. Refresh your browser, and you should see your message. Beautiful! You've just created your first HTML page on NeoCities.
Understanding HTML Structure

The "index.html" file you created is an HTML document. HTML uses tags to structure content. Each opening tag (<p>) must be closed (</p>) to display properly. Let's delve into the main tags:
- <html>: The root of your webpage.
- <head>: Contains meta-information about the document.
- <title>: Specifies the title of the webpage.
- <body>: Contains the visible page content.
- <p>: Represents a paragraph of text.
Titles, Headings, and Paragraphs

You've already seen how to create a title and paragraph. Now, let's look at headings. HTML supports six levels of headings, from <h1> (main heading) to <h6> (subheading). Practice using them in your "index.html" file:
<h1>Page Title</h1> <h2>Main Headings</h2> <h3>Subheadings</h3> <h4>Sub-subheadings</h4> <h5>Sub-Sub-Subheadings</h5> <p>Normal text</p>



















Style Headlines with CSS
HTML tags don't store presentation information β they're like the skeleton of your page. For styling, you'll use CSS (Cascading Style Sheets). NeoCities uses a default style, but you can add custom CSS using the <style> tag in the <head> section. Try it out:
<style>
h1 { color: blue; }
</style>Refresh your browser, and your <h1> headline should now be blue. Cool, right?
Alignment and Emphasis
HTML provides several tags for text alignment and emphasis. Practice using these in your "index.html" file:
- <b> and <strong>: Make text bold.
- <i> and <em>: Make text italic.
- <center>: Center text.
- <p align="left"> and align="right">: Align text to the left or right.
Remember to close your tags to avoid unexpected results. Now, keep practicing, experimenting, and exploring! Web design is all about learning by doing.
Images, Links, and Lists
Next, we'll add some visual appeal and interactivity to your webpage.
Adding Images
Display an image using the <img> tag. Set the image's source (src) and dimensions:
<img src="your_image.png" width="200" height="200">
Before you can display images on NeoCities, you'll need to upload them to your site. Click the "Upload" button in your NeoCities dashboard, add a new file, and select "image" for the file type.
Adding Internal and External Links
Create internal and external links using the <a> tag. Link these to other pages on your NeoCities site or other websites:
<a href="https://neocities.org">NeoCities</a>
Lists, Ordered and Unordered
Add number or bullet point lists to your page using <ol> (ordered list) and <ul> (unordered list) tags, and <li> (list item) tags:
<ul> <li>Item 1</li> <li>Item 2</li> </ul> <ol> <li>First</li> <li>Second</li> </ol>
You've made it! You now know the basics of HTML and how to use them on NeoCities. Keep building, keep exploring, and most importantly, keep having fun! The web design world is at your fingertips. Happy coding!