The document provides information on HTML tags for headings, paragraphs, text styling, links, images, lists, tables, and forms. It includes tags for headings, paragraphs, bold, italic, underline, comments, links, images, horizontal rules, line breaks, making text bigger or smaller, subscript, superscript, preformatted text, headers, main content, footers, navigation, sections, articles, aside content, and div and span containers.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
11 views3 pages
HTML Notes
The document provides information on HTML tags for headings, paragraphs, text styling, links, images, lists, tables, and forms. It includes tags for headings, paragraphs, bold, italic, underline, comments, links, images, horizontal rules, line breaks, making text bigger or smaller, subscript, superscript, preformatted text, headers, main content, footers, navigation, sections, articles, aside content, and div and span containers.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Html notes:
1. <h1> --- <h6> (Heading tag use to identify heading in website)
2. <p> (Paragraph tag use to write paragraph) 3. <b> (Bold tag use to bold text) 4. <i> (Italic tag use to italic text) 5. <u> (Under line tag to underline text) 6. <! -- Html comment--> (Use to comment in html) 7. <a href=” ”> (Anchor tag use to add link in html) 8. <img src=” “> (Image tag use to add images) 9. <hr> (Use to add horizontal line in html) 10.<br> (Use to get new line) 11.<big> (To make text big) 12.<small) (To make text small) 13. <sub> (Subscript example CO2) 14. <sup> (Superscript example x2) 15. <pre> (If you want to add text as same as given example: code) 16. <header> (Use to identify header part of the website) 17. <main> (Use to identify main content of the website) 18. <footer> (Use to identify footer part of the website) 19. Inside the header: <nav> (to add navigation examples: home ,contact etc 20. Inside the main tag: <main> <section> (use to identify the section in a website) <article> (use to add article in website) <aside> (use to identify content aside from main content examples: ads </main> 21. Link attributes: <a href=” www.google.com” >Google</a> (It opens website on the same tab) <a href=”www.google.com” target=” _main” >Google</a> (It opens website on the different tab) 22. <div> (It is a container use to contain items note: It is a block element) 23. <span> (It is also container but it is a inline element) List: 1. <ul> (Unordered list) 2. <li> (list items) Syntax: <ul> <li> </li> <li> </li> </ul> 3. <ol> (Ordered list) Syntax: <ol> <li> </li> <li> </li> </ol> Tables: 1. <table> (Defines start of table) 2. <tr> (Table row) 3. <th> (Table heading) 4. <td> (Table data) 5. <caption> (To add caption above the table) 6. <thead> (Defines table head) 7. <tbody> (Defines table body) 8. Syntax: <table> <caption>Tables</caption> <thead> <tr> <th>S.no</th> <th>Name</th> </tr> </thead> </tbody> <tr> <td>1</td> <td>Rohan</td> </tr> </tbody> </table>
9. Colspan=”3“ (It use to get 3 columns space)
10. Rowspan=”3” (It use to get 3 row space) Forms: Visit: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form