Article –
HTML (HyperText Markup Language) is the standard markup language used to create web pages. It structures content on the web and is interpreted by browsers to display text, images, links, and other elements.
Basic Structure of an HTML Document
An HTML document typically follows this structure:
- <!DOCTYPE html>: Declares the document type and version of HTML.
- <html>: Root element that contains the whole content.
- <head>: Contains meta-information, title, and links to scripts or stylesheets.
- <body>: Holds the main content to be displayed on the webpage.
Common HTML Elements
Some of the most frequently used HTML elements include:
- <p>: Defines a paragraph.
- <h1> to <h6>: Headings, where <h1> is the highest level.
- <a>: Anchor tag used to create hyperlinks.
- <img>: Embeds images.
- <ul> and <ol>: Create unordered and ordered lists respectively.
- <li>: List items inside lists.
Using Tags Correctly
HTML tags should be properly opened and closed. For example:
<p>This is a paragraph.</p>
Some tags like <img> are self-closing and don’t require a closing tag, though HTML5 allows omitting the slash.
Conclusion
Understanding and using the correct HTML syntax ensures that web pages are displayed properly across different browsers and devices.
ज़्यादा कहानियां
अंतरराष्ट्रीय समुद्री सीमा पर पाक नाव पकड़ने से बढ़े भारत-पाक संबंधों के तनाव