<!DOCTYPE html> declare type of document.
And helps browsers to display
web pages correctly.
1. Heading tag
<h1> to <h6> heigher to smaller
2. Para tag
<p> define paragraph
3. Anchor tag
<a> link the web page or website
<a href= www.google.com> google</a>
4. Html image tag
<img>
<img src="anuj.jpg" alt=" " width="104" height="142">
Src= source of file/ file name with path
Alt= alternative text like any link or tag
Width= width of img
Height= height of image in px or %
5. Brake tag
<br> line break
It’s a empty tag which means it has no end tag
6. Horizontal rule
<hr> its also empty tag
7. Pre tag
<pre> for poem type content </pre>
8. Bold tag
<b>
9. Important
<strong>
Attributes of html
href: defines page url
src: defines path to image to displayed
width and height: define height and width of image (in pixle)
alt: it’s a attribute of <img>. Alt defines the alternative text of image
style: it used to add style to element i.e. color,font,size. <p style="color:red;">
lang: it used inside the html tag to declare the language of web page.
<html lang = “en”>
Title: it define some extra info about an element.
<p title= about> this is something</p>
<p title= ‘anuj “dawas” ‘>
<p title= “anuj ‘dawas’ ”>
<a href= “link” target= “_blank” >link</a>
Target attribute: _blank open dm in new window
_self open dm in same win
_parent open in parent frame
_top open in full body of win
Link email to new email
Use mailto: in hrf
<a href= “mailto:anuj@gmail.com” > send mail </a>
Create bookmark in html
Use id attribute
<a href= “#c4”> goto chapter 4</a>
<h1 id= “c4”> chapter 4</h1>
Image type:
APNG animated portable network graphic .apng
GIF
Html table
<table>
<tr>
<th> dawas </th>
</tr>
</table>
Colspan
<th colspan= “2”>
Rawspan
<th rawspan= “2”>
Caption of table
<table>
<caption> markes table</caption>