5 Basic Html5 Tags

Html is a hypertext markup language. It uses tags < , > and /> . Here is a list of 5 basic html5 tags

html5 tags. Photo: unsplash
  1. <!-- … --> Creates a comment. The comment won’t be rendered to show on the browser (invisible).
<!-- Your comment goes here -->

2. <br> Inserts a single line break. This has no closed tag />

<!-- Code -->
<br>
<!-- More code -->

3. <hr> Inserts a horizontal line. It can take width and size attributes to shorten it, or make it thicker/thinner. This tag has no closed tag />

<!-- Code -->
<hr>
<!-- More code -->

4. <div> Formats a block content.

<div>
...
</div>

5. <span> Formats an inline content.

<span> ... </span>

--

--

--

think&code. Also an occasional G(Foodie)OAT: https://www.instagram.com/anaikoki/

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

NextJS — SSR and Server Only Modules

374. Guess Number Higher or Lower

How to subscribe for layout changes with Angular CDK

How to create Vue routes

Capture wpForms in Google Tag Manager

Lab 6 — DPS909

Angular vs React: Which One is Better for Web Development?

Learning How to Build a website

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anna Ikoki

Anna Ikoki

think&code. Also an occasional G(Foodie)OAT: https://www.instagram.com/anaikoki/

More from Medium

Free tutorial on HTML

Introducing HTML

Things you need to know about Sync and Async Javascript (PART 2)

INTRODUCTION TO HTML

Bootstrap for beginners — Part 1

Bootstrap logo