1. HTML Headings
- H1 to H6
- H1 is the biggest
2. <p>
tag
- paragraph tag
- adding spaces and newlines in
<p>
tag wont add spaces or newline in webpage, u need to use<br>
tag for that
3. break tag
- break tag
- break line into newline
4. Pre formatted text tag <pre>
- in
<p>
tag spaces are removed automatically, but inpre
tag spaces and new lines are on webpage as same as we type
5. Horizontal rule tag <hr>
- adding horizontal line as separator in webpage
6. tag attributes
character formatting tags (bold, italic, underline, small, sub, sup, big)
- <b>
element to bold text
- <i>
element to italicize text
- <u>
element to underline text
- <s>
element to strikethrough text
- <small>
element to small text
- <big>
element to larget text
- <sup>
element to SuperScript
- <sub
element to SubScript
7. <font>
tag (Deprecated)
Example :
8. Comments
Single line comment : <!--- this is a comment -->
Multi line comment :
9. HTML Lists (ordered, unordered, defintion, )
Ordered Lists
- ordered lists, also known as numbered lists, we use the
<ol>
element: - Example :
- btw we can change the order list
type
,as an example we can change order list from 1,2,3 to A,B,C. to that u need to add attribute namedtype
top opening<ol>
tag as below :
OUTPUT :
More options :
- type = "i"
: to get lower case roman numbers (i , ii , iii)
- type = "I"
: to get upper case roman numbers (I, II, III)
- type = "A"
: to get upper case letters (A, B , C)
- type = "1"
is Default
10. HTML Links + target attribute
Links are integral to the idea of the internet. They are the primary way users connect to other sites and navigate the web.
How do we add links ?
Preview : Internet Archive
11. HTML images (height, width attribute)
src
= image source (image path)
alt
= alternative tag (in case if image cudnt load, this text fill show up instead of the image as a message for user)
- Use image as link