Professional Documents
Culture Documents
HTML
<ul>
Listas
<li>
Elementos de la Lista
<hX>
<p>
<img>
Titulos
Parrafos
Imagenes
<img src="Direccion de la imagen*">
src = source
*puede ser web o direcctorio donde esta
<a>
Links
<a href="Atributos pagina ">TEXTO DEL LINK</a>
<html></html>
<body></body>
<head></head>
<div class="NombreDeLaClase"></div>
Agrupadores/Secciones
-------------------------------------------------CSS
."clase" "elemeto dentro de la clase"{
propiedad: valor; cierro con punto y coma
}
EJ
h1 {
color:red;
}
color = hay 140
valor RGB
Hexa
0-255
0-ff
EJ: rgb(102,153,0);
PROPIEDADES:
font-family
EJ:
font-family: Arial, Helvetica, sans-serif;
font-family: "Times New Roman", Times, serif;
font-family: "Courier New", Courier, monospace
font-size
background-color : "color"
background-image:
border
EJ
padding:
padding-top
paddig-bottom
padding-left
padding-rigth
borde
margin
margin-left
margin-rigth:
text-transform: uppercase;
display:
inline/block
BOOTSTRAP
GRID
<div class"row">
class="row"
col-md-4
col-xl-XX
col-sm-XX
TABS
class="nav nav-tabs"
PILLS
class="nav nav-pills"
Jumbotron
class="jumbotron"
-----------------------------------------------------------------------2DO
<strong>
negrita en html
itallic/cursiva
a cualquier elemento
style=" ESTILOS "
<table></table>
<tr></tr>
<th></th>
<td></td>
tabla
fila
celda con negrira
celda
colspan
PARA CSS
link:
type="text/css"
rel="stylesheet"
href="RUTA"
elemento:first-child
elemento:nth-child(4)
Posicionamiento
Propiedad Display:
block
inline-block
inline
none
border-width: 45%;
Margin:
Se puede usar todos por separado o se puede poner todos de una
margin-top
margin-left
.....
o
margin: 1px
top
2px
rigth
3px
4px;
bottom left
Padding: relleno
float: donde va a estar ubicado
------------------------------------------------------------------------------------------JS
$('.clase')
$('#id')
$('elem')
.hide();
.show();
.toggle();
.click( function() {});
.animate({ }, tiempo);
.toggleClass('nombreClase')
.keypress
.addClass()
.removeClass()
ocultar elemento
mostrar elemento
cambiar entre oculto y visible elemento
evento click sobre el elemento
$(document).ready(main);
owser
.length
===
!==
igual a
no igual a
Percentage(num1, num2);
alert('mensaje')
Lanza un popUp
EJ:
<body onload="">
Hoisting
jQuery
DOM
.hover()
elimina el elemento en s.
.toggleClass();
agrega o elimina la clase cuando se le hace clic
k.
.height();
cambia altura.
.width();
cambia ancho.
.css();
altera propiedades de el css.
EJ:
css('atributoCss','valor');
.html();
ncida.
.val();
os.
.on();
elementos creados despues
Investigar bien:
.hover();
.click();
.dblclick();
.mouseenter();
.mouseleave();
.focus();
.animate();
----------JSON------------------------------------------------------------------------------------------------------COLSULTAS
* Estas ya viene predefinidas para jquery?
.dropdown-toggle
.dropdown-menu
---RTA. SI
* Porque a veces para que tome la clase es con . y otras directamente el nombre
('.clase')
('clase')
---RTA. Depende del tipo de asignacion y funcin
------------------------------------------------------------------------------------------Plugin * DataTable *
Sirve para organizar dinamicamente las columnas.