21 Basic HTML Codes Everyone Who's Not A Developer Should Know
21 Basic HTML Codes Everyone Who's Not A Developer Should Know
2. Paragraphs
What would a nice heading be without a paragraph to elaborate on the
message? To get a paragraph like the one you're reading now, simply wrap
your text in <p> tags like the example below, and don't forget to close it with a
</p> tag!
3. Links
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 1/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
4. Images
This is a fun one. Images make everything better, and they make your content
a lot more appealing to the reader. Insert an image like this:
The image tag is empty because it only contains attributes, so it doesn't need to
be closed. The attributes listed above include "src" or image URL. I also
included the image alt text (important for SEO purposes), and some styling
properties (width and height).
You can customize your image however you'd like. Oh, and for all you puppy
lovers out there — like me — here is the actual image I coded above:
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 2/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
5. Line break
A line break is also an empty element, so it doesn't need to be closed. A line
break is basically an intentional space between two lines of text, created with
<br>.
Once the HTML above is converted, you can tell that there's less space
between the first line and the second one, as compared to separating two
paragraphs with <p> tags. Adding a line break helps keep sentences within the
same paragraph on different lines.
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 3/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
To make something bold, there are two code elements that work. However, my
developers tell me that <strong> is used much more than <b>. Don't forget to
close the <strong> tag! </strong>
8. Underlined
Bold, italicized, and now underlined. This one is just as easy as the other two.
Just wrap the text you want underlined in <u> tags, like this.
9. Ordered lists
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 4/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
11. Superscript
To insert a superscript format within your text, wrap the text you want to appear
something like this.
superscripted in <sup> tags. </sup> You'll end up with
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 5/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
12. Subscript
If you know how to superscript, you should know how to subscript. Just use
<sub> tags </sub> so you get text like this.
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 6/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 7/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 8/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
21. Tables
I saved the best for last! Well, I don't know if it's the best, but I think it's pretty
darn cool. The HTML code for creating a table can become pretty intricate, but
if you get the hang of the basics, you shouldn't have too much of an issue.
I'll show you how to create a simple table below.
To make it easier to understand, <tr> stands for table row, while <td> stands for
table data. Keep in mind that you can change the font, text size, text color, text
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 9/10
7/10/2020 21 basic HTML codes everyone who’s not a developer should know
https://www.impactbnd.com/blog/21-basic-html-codes-everyone-whos-not-a-developer-should-know 10/10