HTML NOTES BY MANTHAN
HTML NOTES BY MANTHAN
• A BEAUTIFUL ANALOGY
</head>
</html>
• IMP NOTE :
<!---HTML COMMENT--->
• CASE SENSITIVITY
HTML is an case insensitive language <H1> and <h1> tags are same.
We can add elements inside the body tag to define the page layout.
• HTML ELEMENT
Everything from starting to the ending tag .
→ content ←
• HTML ATTRIBUTES
Used to add more information corresponding to an html tag .
<br> tag :-
The br tag is used to create a line break in an html document .
<hr> tags :-
<hr> tag in html is used to create a horinzontal line in an html document ,often
use to separate the content.
Subscript and Superscript :-
We can add subscript and superscript in html as follows :-
Pre tag :-
HTML always ignore extra spaces and new lines. In order to display a piece of
text as is , we use pre tag.
<pre>
This is written
Using pre
tag
</pre>
When we use the right tag in right place, it results in a better page layout,
better indexing by search engine and better user experience.
We use the following tag to get the job done .
<header>
<main>
<footer>
Inside the main tag we insert the following tags :-
• <main> ….. The main opening tag
• <section> …… A page section
• <article> …… A self contained content
• <aside> …… Content aside from the content (eg ads etc)
• </main> …… The main closing tag
LINK ATTRIBUTES :
<a href=“/contact”>Contact us </a>
<a href=“/contact” target= “_blank”>Contact us </a>
LIST :
List are used to display content which represents a list.
UNORDERED LIST :
Used to list unordered items .
<ul>
<li> home </li>
<li> about</li>
</ul>
ORDERED LIST :
Used to list ordered items .
<ol>
<li>phone</li>
<li>contact</li>
</ol>
TABLES :
The <table> tag is used to display tables in html . It is used to format &
display tabular data.
Tr tag :-used to display table row
Td tag :- used to display table data
Th tag :- used in place of table data fpr displaying table headers .
we can define as many table as we need .
To add a caption to the table, we use <caption> tag inside the table.
thead tag: used to wrap table head (caption &tr with th)
t body tag: used to wrap the table body.
COLSPAN ATTRIBUTE: this attribute is used to create cells spamming
multiple columns.
<th columns= “3”>Manthan</th>
HTML FORMS: An html form is used to collect input from the user form
tag is used for the same.
<form>
--element of the form ---
</form>
These are different form elements for different kinds of user input.
We will focous only on HTML standpoint of SEO we will not be looking into
keyword building and content optimizing of SEO .
TYPES OF SEO
• ON PAGE SEO
• OFF PAGE SEO
HTML SEO
Html developers can implement SEO using the following techniques :
1. Set the title very nice & to the point.
2. Set the meta description. <meta name = “description” content = “
”>
3. Set meta keyword tag .
4. Set a nice url slug
5. Set the meta author tag .
6. Set a favicon .
7. Compress images and other resources .
8. Remove unused HTML/CSS &JS files +compress then .
9. Add alt text to images.