DEV Community

Kavya Gupta
Kavya Gupta

Posted on

"Getting Started with HTML : A Beginner's Guide"

Getting Started with HTML:A Beginner's Guide

HTML(Hypertext Markup Language) is a backbone of the web. It's used to structure content on the web and learning, it is the first step of your web development journey.

What is HTML?
HTML is the markup language for creating web pages. It uses elements, tags, attributes to define the structure of your content.
-> HTML code always between html element and html
element contain Head and Body elements.
-> Head is used for Meta Data.
-> Body is used for actual content.

Here is an example of a simple HTML document:

<!DOCKTYPE html>


My First HTML Page


Hello


This is a paragraph



Here are some commonly used HTML elements

Headings
-> Headings are used to make any text as important and each heading held its respective importance.
-> There are 6 headings possible in HTML

to

.
-> h1 is biggest one and h6 is least one.

This is heading

Paragraphs
-> Use the

tag for the text content.

This is paragraph

Links or Hyperlinks
-> Hyperlinks or links are used to navigate the user into different address or references.
-> For creating hyperlinks we use anchor tag .

Images
-> Images are used for visual creatives in web page.
-> tag is used to display images in web page.

alt="Description Text">

Formatting tags
-> Formatting tags are used to format the text such
as bold, italic etc.
-> HTML formatting tags:

  1. - Bold text
  2. - Important text
  3. - Italic text
  4. - Emphasized text
  5. - Marked text
  6. - Smaller text
  7. - Deleted text
  8. - Inserted text
  9. - Subscript text
  10. - Superscript text.

Top comments (0)