Hyper text markup language
Syntax
HTML element
Closing tag
Document type declaration
HTML element
The Head element
Title element
Body
Elements
Heading Element
Div Element
Paragraph Element
Span element
Emphasis element
Strong element
Line Break element
Anchor Element
List Element
Image Element
Video Element
Table Element
Row Element
Table body Element
Table Data Element
Table head element
Table footer element
Table Heading element
Colspan attribute
Rowspan attribute
Form Element
The HTML <form> element is used to collect and send information to an external source.
<form> can contain various input elements. When a user submits the form, information in these input elements is passed to the source which is named in the action attribute of the form.
Input Element
Label Element
Input type
The HTML <input> element is used to render a variety of input fields on a webpage including text fields, checkboxes, buttons, etc. <input> element have a type attribute that determines how it gets rendered to a page.
The example code block will create a text input field and a checkbox input field on a webpage. The value of the <input>‘s name and value attribute of the element are sent as a key-value pair when the form is submitted.
The HTML <label> element provides identification for a specific <input> based on matching values of the <input>‘s id attribute and the <label>‘s for attribute. By default, clicking on the <label> will focus the field of the related <input>.
- text
-password
-number
-range
-checkbox
-radio
-select
-datalist
-textarea
-submit
Validators
- required (all)
- min, max (number)
- minlength, maxlength (text)
- pattern (text)
HTML attribute
Target attribute
Unique ID attribute
Class attribute
The class is an attribute which specifies one or more class names for an HTML element.The class attribute can be used on any HTML element. The class name can be used by CSS and JavaScript to perform certain tasks for elements with the specified class name.
Style attribute
The style attribute specifies an inline style for an element.
Whenever there’s a need to use a piece of data, variables are a good solution. A variable contains data that can be used in the program.
- const
- let
- String
- Numbers
- Booleans
Control flow is the order in which statements are executed in a program. Control structures such as conditionals allow for control flow to be altered during the execution of a program. In JavaScript, the default control flow is for statements to be read and executed in order from left-to-right, top-to-bottom in a program file.
Logical Expression that will return the boolean result of true and false.
Functions are one of the fundamental building blocks in JavaScript. A function is a reusable set of statements to perform a task or calculate a value. Functions can be passed one or more values and can return a value at the end of their execution. In order to use a function, you must define it somewhere in the scope where you wish to call it.
- Firdaus (Full Stack Engineer)
- Arif (Software Change Manager)