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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay