HTML TAGS(BASIC)

0


 BASIC TAGS IN HTML


GAIN AND SHINE


    HTML (Hypertext Markup Language) is the standard markup language for creating web pages. It consists of various tags, each with its own set of attributes and values that are used to structure and format content on a webpage.


In this blog, we will be discussing some of the basic HTML tags and their functionality.


<!DOCTYPE html>

    This tag is used to declare the document type and version of HTML used in the webpage. It is the first line of an HTML document.


<html>

    This tag is used to define the beginning and end of the HTML document. All the other tags are placed between the "<html>" and "</html>" tags.


<head>

    This tag contains the metadata of the webpage, such as the title of the page, links to external stylesheets, and other information that is not visible on the webpage.


<title>

    This tag is used to define the title of the webpage. The text enclosed within the "<title>" and   "</title>" tags is displayed in the title bar of the web browser.


<body>

    This tag contains all the visible content of the webpage, such as text, images, videos, and other multimedia.


<h1> - <h6>

    These tags are used to define the headings of the webpage. The "<h1>" tag is used for the main heading, while the "<h2> to <h6> tags" are used for subheadings.


<p>

This tag is used to define a paragraph of text.


<img>

    This tag is used to insert an image into the webpage. The source file of the image is specified using the "src" attribute.


<a>

    This tag is used to create a hyperlink to another webpage or a specific location within the same webpage. The URL of the destination is specified using the "href" attribute.


<ul> and <li>

    These tags are used to create an unordered list of items. The "<ul>" tag defines the beginning and end of the list, while the "<li>' tag is used to define each item in the list.


<div>

    This tag is used to create a container for other HTML elements. It is often used to group and style sections of a webpage. The "<div>" tag has no specific visual representation by default, but can be styled using CSS.


<span>

    This tag is similar to the <div> tag, but is used to group and style smaller portions of text or other inline elements. The "<span>" tag also has no specific visual representation by default, but can be styled using CSS.


<table>, <tr>, <td>

    These tags are used to create a table on a webpage. The "<table>" tag defines the beginning and end of the table, while the "<tr>" tag defines a row within the table, and the "<td>" tag defines a cell within a row.


<form>, <input>, <button>

    These tags are used to create a form on a webpage. The "<form>" tag defines the beginning and end of the form, while the "<input>" tag is used to create input fields for the user to enter information. The "<button>" tag is used to create a button for the user to submit the form.


<header>, <nav>, <main>, <footer>

    These tags are part of the HTML5 standard, and are used to define the main structural elements of a webpage. The "<header>" tag is used to define the header section of a webpage, while the "<nav>" tag is used to define the navigation section. The "<main>" tag is used to define the main content area of a webpage, and the "<footer>" tag is used to define the footer section.


Conclusion:

    HTML tags are the building blocks of any webpage. These basic tags discussed above are the backbone of the HTML language. It is essential to have a good understanding of these tags to create well-structured and formatted webpages. With this knowledge, you can start creating your own webpages and take your first steps towards web development.


Post a Comment

0Comments

Share Your Feedback Here !!

Post a Comment (0)