Skip to main content

Posts

Showing posts with the label HTML Tags

HTML Tags | Document Structure - Text Formatting - Links and URLs - Lists - Images - Tables - Semantic Elements - Some common HTML tags

Introduction to HTML Tags HTML (Hypertext Markup Language) uses tags to structure content on the web.  Here are some common HTML tags: 1. Document Structure: <!DOCTYPE html>: Defines the document type and version. <html>: The root element of an HTML page. <head>: Contains meta-information about the HTML document. <title>: Sets the title of the HTML document. <body>: Contains the content of the HTML document. HTML Tags 2. Text Formatting: <h1> to <h6>: Headings (from largest to smallest). <p>: Paragraph. <br>: Line break. <hr>: Horizontal rule. 3. Links and URLs: <a href="url">: Anchor tag for creating hyperlinks. 4. Lists: <ul>: Unordered list. <ol>: Ordered list. <li>: List item. 5. Images: <img src="image-url" alt="description">: Image tag. 6. Tables: <table>: Defines a table. <tr>: Defines a table row. <th>: Defines a table header c...

HTML Tags | Document Structure - Headings - Paragraphs - Links - Images - Forms - Tables - Some commonly used HTML tags

What are HTML Tags? HTML (Hypertext Markup Language) uses tags to structure content on the web. Tags are enclosed in angle brackets and come in pairs – an opening tag and a closing tag.  Here are some commonly used HTML tags: 1. Document Structure:    - `<html>`: Defines the root of an HTML document.    - `<head>`: Contains metadata about the HTML document.    - `<title>`: Sets the title of the HTML document.    - `<body>`: Contains the content of the HTML document.    html    <!DOCTYPE html>    <html>      <head>        <title>My HTML Document</title>      </head>      <body>        <!-- Content goes here -->      </body>    </html>     HTML Tags 2. Headings:    - `<h1>` to `<h6...