HTMLs Tutorial

HTML Tutorial HTML Tags HTML Basic Tags HTML Attributes HTML Elements HTML Formatting HTML Text Format HTML body tag HTML samp tag HTML script Tag HTML section tag HTML select tag HTML source tag HTML span tag HTML strike tag HTML strong tag HTML style tag HTML sub tag HTML summary tag HTML sup Tag HTML svg tag HTML table tag HTML u tag HTML Headings HTML Paragraphs HTML wbr tag HTML Anchor HTML Image HTML Lists HTML Ordered List HTML Unordered List HTML Form HTML Form input HTML with CSS HTML Layouts HTML References HTML Frames HTML Links Fieldset Tag in HTML Basic HTML Tags Br Tag in HTML Free HTML Templates How to Create a Table in HTML HTML Calendar HTML Card HTML Cellspacing HTML Center Image HTML Checkbox Read-only HTML Cleaner HTML Code for a Tab HTML Comment HTML Compiler HTML Nested Forms HTML Overlay Text on the Image HTML Select Option Default HTML Snake Game HTML Subheader HTML Tab Character dd Tag in HTML How Many HTML Tags are There HTML Align Tag HTML Responsive HTML Tab Code HTML Table Alternate Row Color HTML Table Fix Column Width Contact HTML DL Tag in HTML How to Insert Image in HTML HTML Background Color HTML Dark Mode How to Convert HTML to PNG HTML Data Toggle HTML Email Template HTML Font Color HTML Font Family ID and Class in HTML HTML Tab Space HTML Tab Tag HTML Itemprop HTML Itemscope HTML Form Design HTML Input Only Numbers HTML Textarea HTML to JPG HTML to Markdown Python li Tag in HTML MDN HTML What is the Correct HTML for Making a Hyperlink? What is the Root Element of an HTML Document How to Make a Box in HTML How to Save HTML Files in Notepad How to Align Text in HTML How to Change Font Color in HTML? How to Change Font Size in HTML How to Change Image Size in HTML How to Create a HTML Page How to Create a Link in HTML File? How to Create an HTML File? HR Tag in HTML HTML Base Tag HTML Default Attribute HTML Hyperlink HTML Indent HTML Injection Payloads HTML Input Numbers Only HTML Roadmap HTML Row Height HTML Schedule HTML Space HTML Tab HTML vs HTTP HTML5 API HTML5 Video HTML Collection to Array Text Area in HTML

HTML5 Advance

HTML5 Tutorial HTML5 Tags HTML Button Tag HTML canvas Tag HTML caption Tag HTML City tag HTML Tag HTML5 SVG HTML Event Attribute HTML5 Audio HTML5 Youtube HTML5 Button Tag HTML5 Tags

Misc

How to add JavaScript to HTML How to change font in HTML How to change text color in HTML HTML Date HTML Hide Element HTML Nested Table HTML Reset Button What does HTML stand for? HTML Background Image HTML Tag Div Tag in HTML How to insert Image in HTML How to create a link with no underline in HTML How to insert spacestabs in text using HTMLCSS HTML tag HTML Code HTML Tag HTML Canvas Design a tribute page using HTML and CSS What is a Container tag Font tag in HTML Difference between HTML and DHTML Empty Tag in HTML HTML Button Link Html Line Break Img src HTML Nested List in HTML Placeholder in HTML TD in HTML HTML Space Code HTML Target Attribute HTML Tag Markup Meaning in HTML Border-Collapse in HTML HTML Onclick Online HTML Compiler Convert HTML to PDF HTML Formatter HTML5 - Web Storage HTTP – Responses Container Tag in HTML DL Tag in HTML Horizontal Rule HTML HTML Tab Text Html Table Cell Background Color HTML Table Cell Color HTML Col Width How Many HTML Tags are There Convert String to Unicode Characters in Python HTML Runner HTML Style Attribute HTML Superscript Attribute HTML tabindex Marquee Tag in HTML HTML Dynamic Form HTML side Tag HTML Pattern Attribute HTML q Tag HTML Readonly Base 64 Encoding in HTML Documents Enhancing Data Portability and Security Evo Cam Web Cam HTML Free code camp HTML CSS How to Add a JS File in HTML? How to Add Picture in HTML How to Add the Logo in HTML? How to Add Video in HTML HTML Class Attribute HTML Entities HTML Form Elements HTML Form Templates HTML Marquee Tag HTML Radio Buttons HTML Text box HTML to JSX HTML Tooltip Basic HTML Codes How to Align Image Center in HTML HTML Header Tag HTML Image Tag HTML Next Line

Basic HTML Tags

HTML Tags: What Are They?

HTML tags are the words that determine the syntax and appearance of a web page in your web browser. Almost all tags include an opening tag and a closing tag. Consider the beginning and closing tags, respectively. The closing tag, which includes an extra forward-slash (/) character, has the same text as the opening tag. One hundred HTML tags are present.

  • <A> </A>

This tag enables you to create links to web pages, your page, social networking sites, products within online stores, and more. The primary feature of this HTML element is the href (Hypertext Reference) attribute, which provides a link to a desired website. Target is an additional feature that may be used to launch a link in a new window, keeping visitors' attention they are currently on.

  • <B> </B>

It would be best to emphasize certain words to make the reader aware of the most significant terms in a lengthy paragraph. And you use bolded wording to do that.

  • <BODY> </BODY>

the portion of an HTML page that is the body. Though it is only a tag that indicates the visible content of the page—where the majority of the material resides—this is a necessary component of all HTML compositions.

  • <BR>

Using this simple HTML element, we can tell where we want text breaks or blank lines in the text. In actuality, including a few gaps allows our content to breathe, facilitating reading and comprehension.

How to Verify the HTML Tags on Your Website

Examining your page's HTML will allow you to determine whether the HTML tags currently on your page are being utilized appropriately. Your web browser is all you need to do this.

You should see the HTML on your website.

  • With Google Chrome open, right-click on your website. Press "Inspect."
  • The HTML code will appear in a box on the side or bottom of your website.
  • To locate certain tags or elements, use Ctrl + F.

How do Web Pages Read HTML Tags?

Servers read HTML code. As you're reading this tutorial, it will read the HTML from top to bottom. You may use as many or as few tags as you desire when formatting material. However, there are a few fundamental HTML elements and guidelines that you must adhere to.

Three components are required for an HTML tag:

  • An opening tag will begin with the symbol <>.
  • Content: a brief set of guidelines for displaying the on-page element
  • A closing tag, which will include a </> at the conclusion

Some HTML tags, nevertheless, are capable of being left open. That implies that a </> is not required to close the HTML element. Unclosed tags are often used for line breaks or metadata.

How Do HTML Tags and Attributes Differ From One Another?

The differences between HTML tags, elements, and attributes should be understood even if this article only focuses on HTML tags.

A piece of material on a web page is called an HTML element. An HTML tag influences the display of an HTML element, and that element's properties are described via an HTML attribute.

The following summarizes the interactions between elements, tags, and attributes:

  • An on-page element's presentation may be customized using HTML tags. They come before and after the element's content, starting and ending with a < and a >. <b> Bold Tag</b>, for example
  • Within the tags are the on-page contents, which are HTML elements. (<b> Bold Mark</b>)
  • HTML attributes are located within the HTML tag and provide further details about HTML components.

List of Fundamental HTML Tags

Here is our list of fundamental HTML tags:

  • <a> For the website link
  • To make text bold, use <b>.
  • <strong> denotes bold text with emphasis
  • <body> the main HTML section
  • <br>In case of a break
  • <div> represents a section or division inside an HTML page.
  • <h1>... about titles
  • <i> to create an italicized text
  • <img> refers to pictures inside the document.
  • An ordered list is represented by <ol>, and an unordered list by <ul>.
  • A list item in a bulleted (ordered list) is <li>.
  • <p> For the paragraph
  • Use <span> to style a specific text section.

Fundamental HTML Tags

  • Head Tag

Each element that describes the page is included inside the head tag <head>.

  • Title Tag

The HTML title of a page is specified by the title element <title> and appears in the browser's title bar.

  • Body Tag

You place the content of your web page within the <body> body element. 

  • Paragraph Tag

The <p> paragraph element defines an online page's paragraph.

  • Heading Tag 

To specify the header of an HTML document, use the HTML heading element. The tag with the most importance is <h1>, while the tag with the lowest is <h6>.

Example

<!DOCTYPE html>

<html>

<head>

<title> My First Page </title>

</head>

<body>

<p> This is k chandan </p>

<h1>This is heading 1</h1>

<h2>This is heading 2</h2>

<h3>This is heading 3</h3>

<h4>This is heading 4</h4>

<h5>This is heading 5</h5>

<h6>This is heading 6</h6>

</body>

</html>

Output

Basic HTML Tags

Tags for Formatting

  • Emphasis tag

You may highlight a certain text in a paragraph using the HTML <em> element. 

  • Bold Tag

You may make the text bold by using the <b> element.

  • Italic Tag

You may make the text italic by using the <i> element.

  • Underline Tag

You may make the text underlined by using the <u> element.

Example

<!DOCTYPE html>

<html>

<head>

</head>

<body>

<p> This is <em>k chandan </em></p>

<p> This is the <b>HTML</b> tags <u><article></article></u> </p>

</body>

</html>

Output

Basic HTML Tags

Link Tag

A page is linked to another page with the element. Using the href property, one may construct

Example Code

<!DOCTYPE html>

<html>

<head>

<title> My First Page </title>

</head>

<body>

<p> Welcome to <em> article </em></p>

<p>

This is the <b>HTML</b> tags <u>article</u>

<a href="https://www.javatpoint.com/"> This is the link to javatpoint website</a>

</p>

</body>

</html>

Output

Basic HTML Tags

List Tag

When entering the items in the listed sequence, you utilize the <li> element. Lists come in two flavors.

  • Ordered list <ol>
  • Unordered list <ul>

 Example code

<!DOCTYPE html>

<html>

<head>

<title> My First Page </title>

</head>

<body>

    <ol>

        <li>HTML</li>

        <li>Tags</li>

        <li>Article</li>

    </ol>

    <ul>

        <li>HTML</li>

        <li>Tags</li>

        <li>Article</li>

    </ul>

</body>

</html>

Output

Basic HTML Tags

Image Tag

When integrating a picture into an HTML text, use the element. Within the tag, you must provide the image's source.

Example code

<!DOCTYPE html>

<html>

<head>

<title> My First Page </title>

</head>

<body>

    <center>

        <img src="https://www.tutorialandexample.com/images/logo.png">

    </center>

</body>

</html>

Output

Basic HTML Tags

The Table Tag

  • To build a table on an HTML page, use the <table> element.
  • The rows in the table are created using the table row (<tr>) tag, and the data is entered using the table data (<td>) tag.
  • The code is entered directly into the HTML file using the style (<style>) element to add methods to the content. 

Example code

<!DOCTYPE html>

<html>

<head>

<title> My First Page </title>

</head>

<style type="text/css">

table, th, td{

border: 1px solid black;

}

</style>

<body>

<table>

<thead>

<tr>

<th>Month</th>

<th>Saving</th>

</tr>

</thead>

<tr>

<td>January</td>

<td>Rs.400</td>

</tr>

<tr>

<td>February</td>

<td>Rs.700</td>

</tr>

</table>

</body>

</html>

Output

Basic HTML Tags

Conclusion

In conclusion, anybody interested in web development should become proficient with the fundamental HTML tags. These tags are the foundation for organizing and designing visually attractive web pages. HTML provides the framework that the whole web is constructed upon, from establishing the general structure of the page with `<html>}, {<head>}, and `<body>} to organizing content with {<p>}, {<h1>} through {<h6>}, and lists.

Additionally, by adding hyperlinks and pictures to web pages, components like {<a>} and `<img>} improve the user experience and ease navigation. Proficiency in using these tags is essential for developing interactive and useful websites.

As you continue your web development adventure, you'll surely run into increasingly complex HTML components and approaches. Nonetheless, developing a firm knowledge of these foundational tags is necessary to comprehend web development principles fully. Now explore, letting your imagination run wild as you use HTML to create engaging web content.