Train Smart. Work Smarter.
June 28, 2023 admin
HTML tags and elements
HTML (Hypertext Markup Language) is the standard markup language used for creating web pages. HTML uses tags and elements to structure and present the content on a web page. Here are some commonly used HTML tags and elements:
<html>: Represents the root element of an HTML document.<head>: Contains metadata about the HTML document, such as the title and links to CSS stylesheets or JavaScript files.<title>: Defines the title of the document, which is displayed in the browser’s title bar or tab.<body>: Contains the visible content of the HTML document.<h1>,<h2>,<h3>,<h4>,<h5>,<h6>: Headings of different levels, with<h1>being the highest and<h6>being the lowest.<p>: Defines a paragraph.<a>: Creates a hyperlink to another webpage or a specific location within the same document.<img>: Inserts an image into the document.<ul>: Represents an unordered (bulleted) list.<ol>: Represents an ordered (numbered) list.<li>: Defines a list item within<ul>or<ol>.<table>: Defines a table.<tr>: Defines a table row.<td>: Defines a table cell.<th>: Defines a table header cell.<div>: Represents a division or a container for other elements.<span>: Inline container used to apply styles or manipulate specific sections of text.<form>: Creates a form for user input.<input>: Defines an input field within a form.<button>: Creates a clickable button.
These are just a few examples of HTML tags and elements. HTML provides a wide range of tags and attributes to structure and style web pages.