In my blog, I will show some basic HTML examples...
(Image Source - Google Images)
Documents in HTML :
- All HTML documents must start with a document type declaration -> <!DOCTYPE html>.
- The HTML document itself begins with <html> and ends with </html>.
- The visible part of the HTML document is between <body> and </body>.
Example
<!DOCTYPE html><html><body><h1>My First Heading</h1><p>My first paragraph.</p></body></html>
Headings in HTML :
- HTML headings are defined with the tags <h1> to <h6>.
- <h1> defines the most important heading. <h6> defines the least important heading.
Example
<h1>This is 1st heading</h1><h2>This is 2nd heading</h2><h3>This is 3rd heading</h3>
Paragraphs in HTML :
- HTML paragraphs are defined with the <p> tag.
<p>This is first paragraph.</p><p>This is second paragraph.</p>
Links in HTML :
- HTML links are defined with the <a> tag.
Example
<a href="https://www.google.com">This is a link</a>
- The destination of the link is specified in the href attribute.
- Attributes are used to provide additional information about HTML elements.
Images in HTML :
- HTML images are defined with the <img> tag.
- The source file (src), alternative text (alt), width, and height are provided as attributes.
Example
<img src="image.jpg" alt="DemoImage" width="500" height="500">
Buttons in HTML :
- HTML buttons are defined with the <button> tag.
Example
<button>Click Here</button>
Lists in HTML :
- HTML lists are defined with the <ul> (Unordered List) or <ol> (Ordered List) tag, followed by <li> (List Items) tags.
Example
<ul><li>Name</li><li>Address</li><li>Mobile</li></ul><ol><li>Name</li><li>Address</li><li>Mobile</li></ol>

Thank you for your comment.
ReplyDelete