html_notes
html_notes
js[javaScript] (logic)
HTML{
-> Hyper Text Markup Language.
-> html is the code that is used to structure a web page and its content.
-> The component used to design the structure of website are called HTML tags.
}
HTML TAGS{
-> A container for some content or other HTML tags
<p>This is a paragraph</p>(here {this is a paragraph} is content and {<p>This is a
paragraph</p>} together we call as element)
}
QUICK POINTS{
COMMENTS IN HTML{
NOTE{
HTML ATTRIBUTES:{
-> Attributes are used to add more information to the tag.
example:
<html lang="en"> (here lang is an attributes and "en" is a value)
}
HEADING TAG:{
-> used to display headings in HTML
<h1>(high importance)
<h2>
<h3>
<h4>
<h5>
<h6>(least importance)
}
PARAGRAPH TAG:{
-> used to add paragraphs in html
<p>this is a sample paragraph</p>
}
ANCHOR TAG:{
-> used to add links to your page.
<a href="https://google.com">Google</a>(here href is attribute)
}
IMAGE TAG:{
-> used to add image to your page.
<img src="/image.png" alt="Random Image">(here src is an attribute and alt also)
(above the image size is large to minimize it we use attribute called height or
width make sure that not to use both height and width)
}
BR TAG:{
-> Used to add next line(line breaks) to your paga
<br>
}
HR TAG:{
->used to display a horizontal ruler, used to separate content
<hr>
}
PRE TAG:{
-> used to display text as it is(without ignoring spaces & next line)
example:
<pre>this
is a sample
text.
</pre>
}
DIV TAG:{
LIST IN HTML:{
->unordered list:{
<ul>
<li>apple</li>
<li>mango</li>
</ul>
}
->ordered list:{
<ol>
<li>apple</li>
<li>mango</li>
<ol>
}
TABLES IN HTML:{