HTML
HTML is essentially the building block of every website on the internet. HTML allows you to add in text, images, gifs, and more to your document.
It's somewhat similar to Markdown in its simplicity, but there are many more practical uses for HTML. Pretty much every website uses HTML documents as its base.
Don't believe me? Right click this page and inspect element. See all that crazy code? That's HTML!
How is HTML used?
You can execute commands in HTML by using tags, which are your greater than less than symbols (<>). Here's what a tag for a paragraph (p) looks like!
`<p>` Hey! I'm a paragraph! `</p>`
As you can see here, you use two tags per command: one to open (<>) and one to close using a forward slash (</>).
Important!
Before you get too far into tags, make sure you start off your document with html:5. This tells your document that the language it HTML. Also be sure to add .html after the name of your document!
What are some other HTML tags?
Here are a few basic HTML tags and what they do.
<p>
: paragraph tag, used to code lines of text.
<div>
: creates division between lines of code or text.
<h1>, <h2>,<h3>, etc.
: header commands.
<ol>
: creates ordered list.
<ul>
: created unordered list.
<li>
: adds elements to a list.
<img src:>
: adds image to document, follow src with the directory to your media.
<b>
: adds bold effect to text.
<u>
: underlines text.
<code>
: insert code block.
<a>
: link command.
Remember: practice makes perfect!
HTML is not quite as easy to master as Markdown is. There are many more commands, technicalities, and other things you need to know before being completely fluent in the language. Best thing you could do to help improve your HTML skills is to practice! Before you know it, you'll be writing up your own beginner HTML docs with ease!
Leave a Reply