Deprecated: wp_getimagesize(): Implicitly marking parameter $image_info as nullable is deprecated, the explicit nullable type must be used instead in /home/yhnmhtrr/tripley.net/wp-includes/media.php on line 5481

Deprecated: Non-canonical cast (double) is deprecated, use the (float) cast instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/wordfence/lib/wfConfig.php on line 2008

Deprecated: Non-canonical cast (binary) is deprecated, use the (string) cast instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/wordfence/lib/wfMD5BloomFilter.php on line 79

Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/wordfence/modules/login-security/classes/controller/settings.php on line 285

Deprecated: YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container::__construct(): Implicitly marking parameter $parameterBag as nullable is deprecated, the explicit nullable type must be used instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php on line 60

Deprecated: AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin::__construct(): Implicitly marking parameter $injector as nullable is deprecated, the explicit nullable type must be used instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/amp/src/Infrastructure/ServiceBasedPlugin.php on line 70

Deprecated: AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin::__construct(): Implicitly marking parameter $service_container as nullable is deprecated, the explicit nullable type must be used instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/amp/src/Infrastructure/ServiceBasedPlugin.php on line 71

Deprecated: AmpProject\AmpWP\Infrastructure\Injector\SimpleInjector::__construct(): Implicitly marking parameter $instantiator as nullable is deprecated, the explicit nullable type must be used instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/amp/src/Infrastructure/Injector/SimpleInjector.php on line 54

Deprecated: Creation of dynamic property CZR_resources::$_resouces_version is deprecated in /home/yhnmhtrr/tripley.net/wp-content/themes/customizr/inc/czr-init-ccat.php on line 3948

Deprecated: ob_end_flush(): Producing output from user output handler LiteSpeed\Core::send_headers_force is deprecated in /home/yhnmhtrr/tripley.net/wp-includes/functions.php on line 5373

Deprecated: ob_end_flush(): Producing output from user output handler httpsrdrctn_the_content is deprecated in /home/yhnmhtrr/tripley.net/wp-includes/functions.php on line 5373

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/feedwordpress/feedwordpress.php on line 757

Deprecated: ob_end_flush(): Producing output from user output handler AMP_Theme_Support::finish_output_buffering is deprecated in /home/yhnmhtrr/tripley.net/wp-includes/functions.php on line 5373
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/feedwordpress/feedwordpress.php on line 757

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-includes/class-wp-block-type-registry.php on line 168

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /home/yhnmhtrr/tripley.net/wp-content/plugins/feedwordpress/feedwordpress.php on line 757
lang="es-MX"> Elementos básicos - Tripley
Tripley

Elementos básicos

Como pudimos ver en el ejercicio anterior usamos algunos textos (a partir de ahora etiquetas) como : <html>,<head>,<body>

¿ Para que sirven?

<!DOCTYPE html>: Le indica al navegador que el documento debe ser tratado como html y es un estándar para indicar que se trata de HTML5

[smartads]

<html lang=”es”>: Es la etiqueta de inicio, después de ella tiene que estar todo el contenido de la web. En versiones anteriores no era necesario incluir el lang=”es” que indica el lengua se encuentra la mayor parte del contenido web.

<head>: Es la etiqueta que indica la cabecera y es donde normalmente se colocan los estilos (CSS), scipts, el título de la página y las etiquetas <meta>.

<meta>: Existen diferentes tipos y se utiliza para añadir información sobre la página. Esta información puede ser utilizada por los buscadores.

<title>: Indica el título de la página, aparece en la pestaña o ventana del navegador.

<link >: Usada generalmente para agregar externos elementos a la web, su uso más común es para añadir hojas de estilo (CSS).

<script>: Para añadir scripts (mini programas). El lenguaje más común es Java Script (no tiene ninguna relación, más allá del nombre, con Java).

<body>: Aquí se debe colocar todo lo que se le quiere “mostrar” al usuario.

 

Algo importante a mencionar sobre las etiquetas es que algunas presentan etiquetas de apertura (<body>) y de cierre(</body>). Otras por ejemplo <hr> no tienen etiqueta de cierre pero por estándar se deben de escribir <hr/>. Es decir únicamente tendríamos que escribir <hr/> sin etiqueta de apertura.

Salir de la versión móvil