DEV Community

Cover image for HTML tags for beginners
Jemima M
Jemima M

Posted on

HTML tags for beginners

HTML elements consist of start and end tags. If you start the tag, you must always end it! An example of this would be:

<tagname>Text goes here...</tagname>

As you can see this tag has a start tag and an end tag.

These are some HTML Elements where you will be able to recognise the start and end of the tags:

  1. <h1>Heading goes here..</h1>

This is the heading element. You can see that in the middle of the start/end tag is where you insert the heading.

  1. <p>Paragraph goes here..</p>

This is the paragraph element. You can see that in the middle of the start/end tag is where you insert your paragraph.

  1. <strong>Text...</strong>

This is the strong element. The strong element is used to wrap around a certain bit of text to show the strong importance of it. An example of the <strong> element would be:

<p>This is an example of a start/closing tag.<strong>You must always close the tag!</strong></p> 
Enter fullscreen mode Exit fullscreen mode

Outcome:

This is an example of a start/closing tag. You must always close the tag!

These are only just a few of the HTML elements. There are plenty of others but in this blog I wanted to focus on understanding the very basics of starting a tag and ending it.

Thank you for reading this blog. I hope that it has helped, in the meantime....

<strong>KEEP CODING 😁</strong>

Top comments (0)