DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,155 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for HTML Tags you should know when learning how to code.
Kenny
Kenny

Posted on

HTML Tags you should know when learning how to code.

I assume you already know what HTML is. In case you're just learning HTML, you can read more about that here. MDN.

- The HTML Title element defines the document's title that is shown in a browser's title bar or a page's tab. It only contains text tags within the element are ignored. For Example:

<title>Grandma's Heavy Metal Festival Journal</title>

Link - It's used for linking CSS external links to the document. href is the path the file

<link href="css/main.css" rel="stylesheet">

header - Defines a header for a document or section,
Navigation inside header

Lists

ul - The ul tag defines an unordered (bulleted) list. Use the ul tag together with the li tag to create unordered lists. These tags are very important whenever you want to create a list item dynamically in Javascript apps like React apps.

ol - An ordered listβ€”the order of the items is important, Could be alphabetical, numerical. etc. It can only have li elements as direct children.

li - A single list item, it must be inside a ul, ol, or menu. It can have most other elements inside it.
Most commonly used HTML tags other than the ones we've written are as follows:

  • body - The page's content.
  • h1 - A section heading.
  • p - A paragraph.
  • a β€” A link.
  • img - An image.
  • div β€” A block-level container for content.
  • span β€” An inline container for content.
  • head β€” The document head.
  • HTML β€” The root element.

Resources Used: MDN,W3schools

Thanks πŸ™Œ for reading and good luck with your coding journey!
Please share this article with your fellow devs if you like it!

Top comments (0)

Get a better DEV experience!

Sign in to your DEV account for a more curated experience.

You're welcome to keep lurking, but the signed in experience is more delightful.