Beginner HTML Tutorial for Neocities: Build Your First Website Step by Step

Welcome to your comprehensive guide on getting started with HTML on Neocities! HTML, or HyperText Markup Language, is the standard markup language for documents designed to be displayed in a web browser. Neocities is an innovative platform that lets you easily create and host websites using HTML. Let's dive right in!

how to make a neocities from scratch❗ || explain-y tutorial ting
how to make a neocities from scratch❗ || explain-y tutorial ting

If you're new to HTML, don't worry! This tutorial starts with the basics and builds up to more complex concepts. By the end, you'll have a solid understanding of HTML and be ready to build your own Neocities website.

Lilith Dev on Neocities
Lilith Dev on Neocities

Setting Up Your Neocities Account and Editor

Before you start coding, you'll need to set up your Neocities account and familiarize yourself with the editor. Sign up for a free account at neocities.org. Once logged in, you'll see your dashboard. Click on "Create a new site" to get started. Neocities uses a simple, user-friendly editor that supports both code view and WYSIWYG (What You See Is What You Get).

Neocities
Neocities

For this tutorial, we'll use the code view, as it's the most versatile and lets you see your HTML code directly. You can switch between code view and WYSIWYG using the icons at the top of the editor.

Understanding the Neocities File Structure

shroomie neocities
shroomie neocities

Neocities uses a simple file structure. When you create a new site, you'll see an empty folder. This is where you'll store your HTML files. By default, Neocities looks for an 'index.html' file in your site's root directory. If it finds one, it will display that page. Let's create your first 'index.html' file!

Click on the "index.html" link in the sidebar, or click "Create new file" and name it 'index.html'. This is where you'll write your HTML code.

Creating Your First HTML Document

selachemist neocities website
selachemist neocities website

Now that you have an 'index.html' file open in the code view, let's write your first HTML code! Here's a simple HTML document structure:

<!DOCTYPE html> <html> <head> <title>My First Neocities Site</title> </head> <body> </body> </html>

Save this code in your 'index.html' file. The browser understands these tags and displays your HTML content accordingly. The <!DOCTYPE html> tag declaration helps with browser compatibility, and the <html> tag is the root container for all other HTML elements.

two different types of web pages with the same text
two different types of web pages with the same text

HTML Basics: Building Blocks and Tags

HTML tags are the building blocks of webpages. They describe the content and structure of a document. HTML tags are surrounded by angle brackets, < and >. Let's explore some basic HTML tags!

Cool website host!
Cool website host!
Lilith Dev on Neocities
Lilith Dev on Neocities
a screen shot of a web page with the words'html input types '
a screen shot of a web page with the words'html input types '
Strawbebby228 on Neocities
Strawbebby228 on Neocities
CSS Notes for Beginners (Easy + Quick Guide) 🎨
CSS Notes for Beginners (Easy + Quick Guide) 🎨
an image of a cat on the screen of a computer monitor that is displaying information about cats
an image of a cat on the screen of a computer monitor that is displaying information about cats
someone is typing on the keyboard of their laptop with an image of a baby doll
someone is typing on the keyboard of their laptop with an image of a baby doll
my neocities ♬⠀
my neocities ♬⠀
my neocities
my neocities
pixel art with the words creating pixel art with css
pixel art with the words creating pixel art with css
Cheat Sheet on Basic HTML Images
Cheat Sheet on Basic HTML Images
an open laptop computer sitting on top of a desk
an open laptop computer sitting on top of a desk
Neocities Browser
Neocities Browser
my strawpage! 🧃☘️
my strawpage! 🧃☘️
a computer screen with a pink flower on it
a computer screen with a pink flower on it
an open laptop computer sitting on top of a table
an open laptop computer sitting on top of a table
so you wanna make a website? ✶ how to start on neocities
so you wanna make a website? ✶ how to start on neocities
#CSS Animations Tips and Tricks
#CSS Animations Tips and Tricks
an image of some type of webpage with dark colors and blue text on it
an image of some type of webpage with dark colors and blue text on it

You can insert these tags directly into your 'index.html' file and see the changes in real-time on your Neocities site.

Headings and Paragraphs

HTML uses six heading tags, <h1> through <h6>, for section headings, with <h1> being the highest level and <h6> the lowest. The <p> tag is used for paragraph text. Here's an example:

<h1>Welcome to My Neocities Site</h1> <h2>About Me</h2> <p>Hi there! I'm just getting started with Neocities and HTML.</p>

Try adding these tags to your 'index.html' file and see how they change the layout and appearance of your site.

Bold and Italic Text

To emphasize text, HTML provides the <strong> and <em> tags. The <strong> tag renders text in bold and indicates strong importance, while the <em> tag renders text in italics and indicates emphasized or stoichiometric importance. Here's an example:

<p>This is some <strong>bold text</strong> and this is some <em>italic text</em>.</p>

Add this code to your 'index.html' file to see the result.

Lists and Links

HTML provides several ways to organize and present information. Lists are a great way to structure information, and links help users navigate your site and the web.

Unordered and Ordered Lists

HTML lists use the <ul> and <ol> tags for unordered (bulleted) and ordered (numbered) lists, respectively. Each list item is denoted by the <li> tag. Here's an example:

<ul> <li>Apples</li> <li>Bananas</li> <li>Oranges</li> </ul> <ol> <li>First</li> <li>Second</li> <li>Third</li> </ol>

Add this code to your 'index.html' file and see the Bulletin Board and Numbered lists appear on your site.

Links

HTML links, or <a> tags, allow users to navigate between websites and pages. The 'href' attribute specifies the link's destination. Here's an example that links to the Neocities homepage:

<a href="https://neocities.org">Visit Neocities</a>

Add this code to your 'index.html' file, and click the "Visit Neocities" link on your site to test the link.

Images and Tables

Images and tables can bring your Neocities site to life, providing visual interest and organizing information.

Images

HTML uses the <img> tag to embed images. The 'src' attribute specifies the image's source, and the 'alt' attribute provides an alternative text description for accessibility purposes. Here's an example:

<img src="https://via.placeholder.com/150" alt="A placeholder image">

Add this code to your 'index.html' file. Note that you'll need to upload your own images to Neocities to use them in your site. You can do this by clicking the "Upload file" button in the sidebar.

Tables

HTML tables, indicated by the <table> tag, help organize data into rows, columns, and cells. The <th> tag is used for table headers, and regular text appears in <td> tags. Here's an example:

<table> <tr><th>Header 1</th><th>Header 2</th></tr> <tr><td>Cell 1</td><td>Cell 2</td></tr> </table>

Add this code to your 'index.html' file and see the table appear on your site.

Now that you've learned the basics of HTML and how to use Neocities, it's time to start exploring more advanced topics and building your own unique website! The Neocities community is full of resources and tutorials to help you along the way. Happy coding, and enjoy your new Neocities adventure!

Related Articles

5 X 5 Rubik's Cube Algorithms Online Html Compiler Tutorialspoint Html Tutorial 5 Table In Html Tutorialspoint Html Tutorialspoint Pdf Download Html Forms Tutorialspoint Html Tutorialspoint Full Pdf Free Download Html Tutorial Myanmar Html Tutorial Title Html Frames Tutorialspoint