5 votes
848 views
in Other by 🌀 Sorcerer (25.6k points)

(updated: https://www.kidzsearch.com/questions/383957/learn-html-here-repost-updated-css-too)

Hey guys! So, you clicked on this post to learn HTML, eh? Well, your in the right place!

HTML is a programming language that is fun and frustrating at times.

HTML stands for HyperText Markup Language

You could use it to make forums, websites, documents, and MORE!

So, lets get started!

Create a new file in a folder called index.html (i recommend using https://vscode.dev)

First, you put <DOCTYPE! html> at the top on line 1! (formatting is important so you can read your code)

After that, put <html>, if your code editor is good (i recommend https://vscode.dev) it should auto generate </html> after that. the <html> and </html> things are called tags, you can put things in them!

After you put that, put <head> in between the <html> tags. Anything inside a tag is called content, and tags and content together are called elements! please remember these words for later.

After you put your head tags, put <title> inbetween <head> and </head>

that is the data that will be applied to your document!

after that, in between <title> and </title>, put whatever you want! When you open the document in your files, it will open a page on your browser! Then if you look at the tab name, what you put in the title tags will be there!

-------------------CONTINUED-------------------

After that, below the </head> tag, put <body>

<body> is the element that will hold everything that the user can see (images, gifs, text, etc.)

Put <h1>, and inside those <h1> tags, put whatever text you want!

When you reload the page, it will show big text!

Try that with <h2>, <h3>, <h4>, <h5>, and <h6>!

Those are the headers! Now, lets make paragraphs!

put <p> tags. Like the headers, put text inside them to show that text!

So, you put the text, right?

put a new line in the <p> tag, and on that new line, put text!

do you notice something? Yep, that new line doesn't break apart the text!

to do that, put <br> for a new line! 

this also spaces apart elements if your too lazy to use padding (we will get into that later)

also, you can put images! In your files, put an image in the same folder as your html file

then put <img src="image.png" height="50" width="50">

that will create an image on your page that is exactly 50 pixels tall and 50 pixels wide.

but, the image will lose all of its proportions!

to keep them, remove the width="50" or height="50" part of your image tag.

So, that's done!

next, we will learn how to put videos and audio.

-------------------CONTINUED-------------------

so, lets say you want AUTOPLAYING BACKGROUND MUSIC

put an <audio> tag, also, for images, videos, or audio, you don't need the second tag.

put <audio src="audio.mp3" autoplay>

that will put auto-playing background music.

also, experiment with images, videos, and audio!

there is also stuff you can put in the tag with autoplay, like controls, and looped!

now, lets put a video!

put a <video> tag

in that tag, put autoplay, looped, and controls

it should look like this 

<video src="video.mp4" autoplay looped controls>

that will put a video on the screen. and btw, the height= and width= stuff works with almost all tags!

thats it for now!

-------------------END-------------------

I'll edit this and continue this soon. I might create a new post whether you can edit posts or not. Bye bye!

4 Answers

1 vote
by ⚡ Energy Weaver (229k points)
 
Best answer
Cool thanks.for the information
by 🌀 Sorcerer (25.6k points)
Your welcome!
by ⚡ Energy Weaver (229k points)
1

 I hope I can use this!! Again thanks!! meowlameowlameowla

0 votes
by 🌌 Galactic Overlord (2.66m points) [prez/mod]

Quick hack for images to make them responsive and keep proportion while scaling!

<img src="image.png" height="50" width="50">

<img src="image.png" width="50%">

50% will make it half the width of the page or container, 25% will make it 1/4, 100% will make it full width, etc...

by 🌀 Sorcerer (25.6k points)
Oh, didn't know that! Thank you!
0 votes
by 🌟 Mystic (328k points)
I recommend Trinket.io if your starting out
0 votes
by
FINALLY SOMEONE ELSE WHO IS ACTUALLY INTO THAT KINDA STUFF.

I decided to learn HTML a lil bit ago and spent a month learning how to create a website. I got as far as setting up SQL databases and then my interest shifted back to my browser I'm making.

What projects have you been working on? Oh also ur great at teaching. The post was very well written
by 🌌 Galactic Overlord (2.66m points) [prez/mod]
I'm interested in sites too! I even made a couple themes for kidztalk. I have my own forum with 1000+ posts as well, so if you have any questions feel free to ask me fr
by 🌀 Sorcerer (25.6k points)
I've been working on a few little websites I make for fun.

I tried doing PHPBB3 but I couldn't get it to log in

also, thank you!
by 🌌 Galactic Overlord (2.66m points) [prez/mod]
I made some phobb sites. My successful sites uses xenforo 2. Love to here that someone here does website stuff. Yall should try making a question2answer site, the platform powering kidztalk. Good luck to the two of you!

Related questions

7 votes
3 answers 427 views
asked Apr 28, 2025 in Technology by A fungi 🃏 Illusionist (12.1k points)
7 votes
3 answers 720 views
5 votes
1 answer 734 views
asked Jul 19, 2022 in Computer Club by Basha ✨ Charmer (9.2k points)
6 votes
3 answers 480 views
asked Jul 18, 2022 in Computer Club by Basha ✨ Charmer (9.2k points)
11 votes
5 answers 386 views
7 votes
3 answers 684 views
13 votes
3 answers 787 views
asked Dec 14, 2022 in Foreign Languages by imnayeon ⚡ Energy Weaver (230k points)
12 votes
7 answers 1.2k views
14 votes
8 answers 1.5k views
10 votes
3 answers 356 views
2 votes
3 answers 59 views
5 votes
4 answers 263 views
3 votes
2 answers 319 views
3 votes
1 answer 46 views
2 votes
2 answers 123 views
9 votes
3 answers 450 views
asked Apr 13, 2025 in Other by Zwelda Nerd :D 💫 Luminary (161k points)
10 votes
3 answers 380 views
asked Apr 12, 2025 in Other by Zelda Nerd :D
11 votes
2 answers 641 views
asked Oct 10, 2016 in Technology by William
5 votes
1 answer 112 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.4k points)
4 votes
1 answer 106 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.4k points)
3 votes
1 answer 84 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.4k points)
4 votes
1 answer 89 views
asked Jan 1 in Max Juicebox World by maxjuiceboxcore ⚗️ Conjurer (16.4k points)
8 votes
1 answer 250 views
asked Dec 20, 2024 in Other by anonymous
7 votes
1 answer 248 views
asked Dec 19, 2024 in Other by anonymous
...