Basic HTML - Sachin Khanal
HTML, or HyperText Markup Language, is the standard markup language used for creating web pages and applications. It provides a structure and formatting for the content on the web. Here's an example of a basic HTML document structure:
<!DOCTYPE html>
<html>
<head> <title>My First Web Page</title> </head> <body> <h1>Welcome to My Web Page</h1> <p>This is a paragraph of text.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li> <li>Item 3</li> </ul> </body>
</html>
There are a lot of tags on html which is given below:
<html>: Represents the root element of an HTML document.<head>: Contains meta-information about the HTML document.<title>: Defines the title of the web page.<body>: Represents the visible content of the web page.<h1>,<h2>,<h3>,<h4>,<h5>,<h6>: Heading elements from the highest (h1) to the lowest (h6) level of importance.<p>: Defines a paragraph of text.<a>: Creates a hyperlink to another web page or resource.<img>: Embeds an image in the web page.<ul>: Represents an unordered (bulleted) list.<ol>: Represents an ordered (numbered) list.<li>: Defines a list item within<ul>or<ol>.<div>: Defines a division or section of the web page.<span>: Defines an inline section or a container for small pieces of content.<table>: Represents tabular data.<tr>: Defines a table row.<td>: Defines a table cell.<th>: Defines a table header cell.<form>: Creates a form for user input.<input>: Defines an input field within a form.<button>: Creates a clickable button.<textarea>: Defines a multi-line text input field.<select>: Creates a dropdown list.<option>: Defines an option within a<select>element.<iframe>: Embeds an inline frame for displaying external content.
Comments