From 4b749c41c4394a1be93a7b059d89113ee63131d6 Mon Sep 17 00:00:00 2001
From: Jagannath Ojha <60706739+jagannath10@users.noreply.github.com>
Date: Sat, 29 Oct 2022 20:45:51 +0530
Subject: [PATCH] Create HTML Notes
---
HTML Notes | 341 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 341 insertions(+)
create mode 100644 HTML Notes
diff --git a/HTML Notes b/HTML Notes
new file mode 100644
index 0000000..6ecaee3
--- /dev/null
+++ b/HTML Notes
@@ -0,0 +1,341 @@
+HTML:
+- HTML stands for Hypertext Markup Language.
+- This is one of the core language to develop websites among css and javascript.
+- Any html document contains an extension of .html or .htm
+- Any html document's output is displayed in browser.
+- A html document contains html tags which performs different functions in the browser.
+- Html tag is not displayed in browser rather it is parsed by the browser and the contents in html tag is displayed as output in browser.
+- Html is a static programming language that is it displays only the static content in the webpage.
+- Static programming language means the content is not changed rather we reload the webpage for several times also.
+- We can apply the dynamic nature to html webpages by using javascript.
+- The complete html document is represented inside a tag called ........
+- The html tag consists of 2 main parts:
+1.head section - head section is represented by
.....
+2.body section - body section is represented by .....
+- Basic html structure:
+
+ .....
+ .....
+
+
+- head section contains information like meta information and website's title and few css configuration and some javascript configuration.
+- body section contains the actual content which is displayed in the webpage as output or result.
+- Stucture of HTML Document:
+
+
+
+
+ Title
+
+
+
+
+
+
+1. - it describes the document type to be html.
+2. - it describes the html document tag is opened and content which is written inside the html document follows english language.
+3. - it is the meta information of the webpage and utf-8 stands for Uniform Transformation Format of 8 bit. It is used for encoding of webpages. encode means it supports many languages and it can accomodate many pages and forms in any mixture of language.
+4. - it represents the title of the webpage.
+
+ - it is used to give the comment in html document. The comments are not displayed or executed in the web page. The comments are necessary for our own reference in the html document.
+
+Rules for writing a html document:
+1.Each content which is displaying in the webpage should be written in between a html tag.
+2.all the html tags should be written in lowercase.
+3.always add an ending tag if required, that means some html tags donot have a closing tag.
+
+
+HTML HEADINGS:
+- If you want a heading in your webpage then we have heading tag which is represented by ...
+- There are 6 types of heading:
+1.
....
- main heading
+2.
....
- sub heading
+3.
....
+4.
....
+5.
....
+6.
....
- least heading
+
+HTML PARAGRAPHS:
+- We can display paragraphs in html webpages with the help of
....
.
+- If we write any content inside the p tag it is considered as paragraph.
+- The number of lines of paragraph in the html documents is not same as the number of lines that are displayed in the browser.
+- The number of lines represented in the webpage is decided by the browser based on the width of the browser.
+- If we want to display the same number of lines as per the html document and the web browser then we have to use
....
.
+
+Shortcut to generate the paragraph with words automatically:
+lorem50(press tab) - it will generate 50words line.
+
+Q. Create 4 movies of holly,bolly,tolly,olly.but olly must have pre tag.
+
+HTML DIVISIONS:
+- We can have html divisions which is represented as
.....
.
+- div tag is generally used to divide a html document or the entire webpage into various sections or divisions using div tag.
+- div tag is often used as container for the other html elements and to style them using css.
+- by default div tag do not have any styles, if you want to apply any style to div tag then we have use css.
+
+HTML SPAN:
+- html span is represented by .....
+- if you want to apply styles to a particular word,alphabet or a group of words then we have to use span tag.
+
+HTML TEXT FORMATTING:
+- Text formatting styles:
+ - bold text
+ - italic text
+ - emphasized text
+ - small text
+ - subscript text
+ - superscript text
+ - deleted text
+ - underline or insert text
+
+Q. Create a webpage with heading as Mixed Text and write a paragraph under mixed text containing all the text format.
+
+HTML UNORDERED LIST:
+- In html unordered list is represented by a tag called
.....
.
+- Each of the list item is represented by a tag called
.....
.
+- The list of items is displayed inside the ul tag.
+- By default the bullentin or the list is represented by disc type of attribute, if the type attribute in ul tag is not mentioned.
+- There are 4 types of attribute: disc,square,circle,none
+
+HTML ORDERED LIST:
+- In html ordered list is represented by a tag called .......
+- Each of the list item inside ol tag is represented by a tag called
......
.
+- The list items are displayed inside the ol tag.
+- By default the bulletin or the list is represented by 1,2,3,4,5... , if the type attribute is not mentioned inside the ol tag.
+- There are 5 types of attribute: 1,a,A,i,I
+
+HTML IMAGES:
+- We can display the images in the web browser by using the .
+- img tag do not have any closing tag.
+- img tag consists of different attributes:
+1. src - represents the path or link of the image that is to be displayed in the web browser.
+2. alt - represents alternative text i.e if the image is not displayed by any cause in the web browser, then the text passed inside the alt attribute is displayed in the place of image. If the image is displayed then the arlternative text is not displayed. The use of alt attribute is the user can know what is the image if the image is not displayed.
+3. width , height - represents the width and height of the image to be customized by your own. The default size of the image is displayed in the web browser, if you want customize the image you have to use width and height.
+- We can apply respective css to the images for styling.
+
+HTML TABLES:
+- In html tables can be displayed in the webpage with the help of
.......
.
+- Each html table have 2 sections such as head and body.
+1. The head part of the table is represented by .....
+2. The body part of the table is represented by .....
+- Each row in the html table is represented by
.....
+- Each cell inside row of thead is represented by
....
+- Each cell inside row of tbody is represented by