HTML Notes
HTML Notes
The components used to design the structure of websites are called HTML tags
HTML Tag
A container for some content or other HTML tag
HTML 1
💡 Inside in <p></p> → Called as Content
Quick Points
An HTML tag is a parent of the head & body tag
Most HTML elements have opening & closing tags with content in between
Some tags have no content in between, eg - <br> [Break tag with no opening and
ending tag like <br></br>] [You can use this tag for next line]
Comments in HTML
This is part of the code that should not be parsed
<p> = <P>
HTML 2
<head> = <HEAD>
<body> = <BODY>
Heading Tag
Used to display headings in HTML
h2
h3
h4
h5
HTML 3
Paragraph Tag
Used to add paragraphs in HTML
Anchor Tag
Used to add links to your page
Image Tag
HTML 4
Used to add Images to your page
Hr Tag
Used to display a horizontal ruler, used to separate content
HTML 5
Subscript & Superscript Tag
Used to display a horizontal ruler, used to separate content
HTML 6
Inside Main Tag
Section Tag <section> For a section on your page
Div Tag
HTML 7
Div is a container used for other HTML elements
Span Tag
Span is also a container used for other HTML elements
List in HTML
Lists are used to represent real life list data
Unordered <ul></ul>
Ordered <ol></ol>
List <li></li>
HTML 8
Tables in HTML
Tables are used to represent real life table data
HTML 9
Caption in Tables
👉🏻 <caption>Student Data</caption>
HTML 10
👉🏻 <thead> ⇒ To wrap table head
Form in HTML
HTML 11
Forms are used to collect data from the user
<form></form>
Action in Form
Action attribute is used to define what action needs to be performed when a form is
submitted
<form action’”/action.php”>
Label
HTML 12
Checkbox
Checkbox basically used for multiple type answers like that….
HTML 13
👉🏻 <textarea> ⇒ Used for feedback by the user
Select
HTML 14
<input type=”submit” value=”submit”> ⇒ Used for submit
iframe Tag
Website inside Website
Video Tag
<video src=”Video.mp4”>My video</video>
Attributes
controls
height
width
loop
autoplay
HTML 15