NON-CONTAINER TAGS- These are tags which don’t have a starting and an ending component, instead they’re just a single structure.
These tags will have a forward slash right next to the greater-than sign on the right.
CONTAINER TAGS- Container Tags are comprised of two tags that go together, an opening and a closing tag
head tag
- The head tags are basically the settings for your HTML document. In here we can place all sorts of special tags which will help to configure and provide meta-data about the html document itself.
These specify the name of the webpage, and whatever is in here will show up in the tab of the page.
body tag- It’s inside of these tags that we’ll place all of the content that is meant to appear on the web-page.
title tag : These specify the name of the webpage, and whatever is in here will show up in the tab of the page.
Tags | Description |
---|---|
< b > | Bold Text |
< strong > | Important Text |
< i > | Italic Text |
< em > | Emphasized Text |
< mark > | Marked Text(text that we want highlighted) |
< small > | Smaller Text |
< ins > | Inserted Text |
< sub > | Subscript Text |
< sup > | Superscript Text |
Tag | Description |
---|---|
< abbr > | Defiens an abbreviation or acronym |
< address > | Defiens contact informationfor the author/owner of a document |
< bdo > | Defines the text direction |
< blockquote > | Defines a section that is quoted from another source |
< cite > | Defines the title of a work |
< q > | Define a short inline quotation |
LINKS,VIDEOS and IMAGES
OPENING OTHER WEBSITE IN NEW TAB :(Relative Link) RUCHIT INTRODUCTION WEBSITE
OPENING NEW FILE:SQL Diagram
ADDING VIDEO FILES:
LISTS
There are three ways for specifying the lists:ordered,unordered and description lists
ORDERED LISTS:An ordered list can be created with the ol tag and each list item can be created with the li tag
There are couple of ways we can use lists such that we can add numbers appearing on the list items in an ordered list.The first way is to set a starting number, using the start attribute. The list will start at this defined number, and continue incrementing by one as usual.
For example:
TABLES
The HTML table element allows web authors to display tabular data (such as text, images, links, other tables,etc.) in a two dimensional table with rows and columns of cells.
Each table row is defined with a tr tag. Each table header is defined with a th tag. Each table data/cell is defined with a td tag. By default, the text in th elements are bold and centered. By default, the text in tdelements are regular and left-aligned.
Note: The td elements are the data containers of the table. They can contain all sorts of HTML elements;text,images, lists, other tables, etc.
NAME | AGE |
---|---|
jeet | 19 |
aaryan | 18 |
ruchit | 15 |
Name | Sapid | Year |
---|---|---|
Jeet | 51 | SE |
Aaryan | 04 | SE |
Ruchit | 95 | BE |
DIVS | SPANS |
---|---|
The div element is often used as a container for other HTML elements. | The span element is an inline container used to mark up a part of a text, or a part of a document. |
The div element has no required attributes, but style, class and id are common. | The span element has no required attributes, but style, class and id are common. |
London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.
Standing on the River Thames, London has been a major settlement for two millennia, its history going back to its founding by the Romans, who named it Londinium.
My mother has blue eyes and my father has dark green eyes.
BLOCK | INLINE |
---|---|
A div element is BLOCK-level element | A span element is INLINE-level element |
A block-level element always starts on a new line. | An inline element does not start on a new line. |
A block-level element always takes up the full width available (stretches out to the left and right as far as it can). |
An inline element only takes up as much width as necessary. |
A block level element has a top and a bottom margin | Whereas an inline element does not. |
iFrames
The term "IFrame" means Inline Frame. It can be used to include another page in your page. This will yield a small frame which shows the exact contents of that field.
Format of writing iframe Code:
Output:
BORDER:
srcdoc:
The srcdoc attribute can be used (instead of the src attribute) to specify the exact contents of the iframe as a whole HTML document. This will yield an IFrame with the text "IFrames are cool!"
Attributes used
No. | Type | Description | Baic Example |
---|---|---|---|
1 | Input type TEXT | input type="text" Defines a single-line text input field. The default width of a text field input is 20 characters. This can be changed by specifying a value for the size attribute like this: ![]() An input text field only allows one line of text. If you need a multi-line text input for substantial amount of text, use a textarea element instead. Value attribute helps us to set default value in the text field. |
|
2 | Input type PASSWORD |
Enter your name Password |
|
3 | Input type SUBMIT | input type="submit"
A submit input creates a button which submits the form it is inside when clicked.
If value attribute is omitted than it will be taking a by default value of ‘Submit’.
![]() |
|
4 | Input type RESET | input type="reset" defines a reset button that will reset all form values to their default values. But, to make this reset button functional(data which is inside the form tag) we need to put all our code in form tag. The button will only reset the elements within this form.
![]() |
Enter your name Password |
5 | Input type RADIO | input type="radio" defines a radio button. Radio buttons let a user select ONLY ONE of a limited number of choices.![]() Value of name attribute should be same for a group of radio buttons. To give context to the buttons and show users what each button is for, each of them should have a label. This can be done using a label element to wrap the button. Also, this makes the label clickable, so you select the corresponding button.To provide label for entire group we used fieldset and legend tags. ![]() |
|
6 | Input type CHECKBOX | input type="checkbox" defines a checkbox. Checkboxes let a user select ZERO or MORE options of a limited number of choices.![]() |
Fruits |
7 | Input type BUTTON | Buttons can be used for triggering actions to occur on the page, without submitting the form. Buttons are typically used with an "onclick" event.![]() |
|
8 | Input type COLOR | The input element with a type attribute whose value is color creates a button-like control, with a color equal to the value of color attribute. Defaults to black if value is not specified or is an invalid hexadecimal format. ![]() |
Color Picker
|
9 | Input type DATE | The input type="date"is used for input fields that should contain a date. You can also use the min and max attributes to add restrictions to dates.
![]() |
|
10 | Input type DATETIME-LOCAL | input elements of type datetime-local create input controls that let the user easily enter both a date and a time, including the year, month, and day as well as the time in hours and minutes
![]() |
|
11 | Input type EMAIL | input elements of type email are used to let the user enter and edit an e-mail address, or, if the multiple attribute is specified, a list of e-mail addresses.![]() |
|
12 | Input type FILES | input elements with type="file" let the user choose one or more files from their device storage.
|
|
13 | Input type MONTH | input elements of type month create input fields that let the user enter a month and year allowing a month and year to be easily entered. The value is a string whose value is in the format "YYYY-MM"
![]() |
|
14 | Input type tel and number |
Input tel: elements of type tel are used to let the user enter and edit a telephone number. Input number: elements of type number are used to let the user enter a number. They include built-in validation to reject non-numerical entries ![]() |
|
15 | Input type RANGE | input elements of type range let the user specify a numeric value which must be no less than a given value, and no more than another given value.
Default range is 0 to 100. However, you can set restrictions on what numbers are accepted with the min, max, and step attributes.
![]() ![]() |
|
16 | Input type SEARCH | input elements of type search are text fields designed for the user to enter search queries into ![]() |
|
17 | Input type IMAGE | input elements of type image are used to create graphical submit buttons, i.e. submit buttons that take the form of an image rather than text.
![]() |
|
18 | Input type TIME | input elements of type time create input fields designed to let the user easily enter a time (hours and minutes, and optionally seconds).
![]() |
|
19 | Input type URL | input elements of type url are used to let the user enter and edit a URL.
![]() |
|
20 | Input type week | The input type="week" allows the user to select a week and year.
![]() |
|
The option elements defines an option that can be selected. By default, the first item in the drop-down list is selected. To define a pre-selected option, add the selected attribute to the option. Use the size attribute to specify the number of visible values. Use the multiple attribute to allow the user to select more than one value.
Datalist basically is a normal text field which also gives suggestions to the user whether if he/she wants to select any of the options provided or else wants to add their own text in it.
Metadata will not be displayed on the page, but is machine parsable.
The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).
The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.