{"id":23317147,"url":"https://github.com/adnksharp/web-p-edit-html-with-js","last_synced_at":"2025-06-10T11:09:26.136Z","repository":{"id":135392715,"uuid":"513917250","full_name":"adnksharp/web-P-edit-html-with-js","owner":"adnksharp","description":"Agregar etiquetas a HTML desde JavaScript","archived":false,"fork":false,"pushed_at":"2022-07-14T13:42:55.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"base","last_synced_at":"2025-04-07T03:53:34.465Z","etag":null,"topics":["html-css-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adnksharp.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-14T13:42:46.000Z","updated_at":"2023-06-27T16:29:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c70be1b-2216-436a-81a5-0b379ed656ef","html_url":"https://github.com/adnksharp/web-P-edit-html-with-js","commit_stats":null,"previous_names":["adnksharp/web-p-edit-html-with-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnksharp%2Fweb-P-edit-html-with-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnksharp%2Fweb-P-edit-html-with-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnksharp%2Fweb-P-edit-html-with-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adnksharp%2Fweb-P-edit-html-with-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adnksharp","download_url":"https://codeload.github.com/adnksharp/web-P-edit-html-with-js/tar.gz/refs/heads/base","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589832,"owners_count":20963022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-css-javascript"],"created_at":"2024-12-20T16:20:34.491Z","updated_at":"2025-04-07T03:53:37.713Z","avatar_url":"https://github.com/adnksharp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agregar etiquetas a HTML desde JavaScript\n\n[![K-051.jpg](https://i.postimg.cc/G2gWZ6jz/K-051.jpg)](https://postimg.cc/FdcCSW8J)\n\nUso de las funciones ```insertBefore``` e ```insertAdjacentElement``` para agregar etiquetas a un archivo de HTML para recrear el proyecto [Hola mundo con HTML, CSS y JavaScript](https://github.com/adnksharp/wHW)\n\n### HTML\nEn este proyecto las únicas etiquetas que se agregan corresponden a los scripts:\n\n- **index**: Script que agrega las etiquetas ```div``` y ```p``` para crear el proyecto.\n- **animation**: Script del proyecto **Hola mundo...**.\n\n### CSS\nColores de fondo y texto, fuente a utilizar y ubicación de los elementos.\n\n### JavaScript\nUsando la función ```createElement``` creamos los elementos que se agregarán al archivo HTML con su clase (```setAttribute```). \n\nPara agregar elementos dentro del **body** usamos la función ```firstChild``` en ```body.insertBefore``` y para agregar elementos dentro de un elemento usamos la función ```beforeend``` en ```element.insertAdjacentElement```.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnksharp%2Fweb-p-edit-html-with-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnksharp%2Fweb-p-edit-html-with-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnksharp%2Fweb-p-edit-html-with-js/lists"}