Giter Club home page Giter Club logo

derektypist / dom-elements-by-tag-name Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

Document Object Model (DOM) - Investigation of the getElementsByTagName method. Count the number of items in a particular tag (e.g. li) as well as getting the random item in the particular tag.

Home Page: https://derektypist.github.io/dom-elements-by-tag-name

HTML 57.57% CSS 13.41% JavaScript 29.02%
bootstrap5 css3 documentobjectmodel dom getelementsbytagname google-fonts html5 javascript

dom-elements-by-tag-name's Introduction

Document Object Model (DOM) - Get Elements by Tag Name

The aim is to investigate the getElementsByTagName method. This can include the number of elements in a particular tag (e.g. li). Also to get a random item from the particular tag.

List Items will be used. The list items can be names of celebrities.

UX

Getting Started

Select the Get Random Celebrity Button to get the number of list items (celebrities), list of celebrities and the celebrity selected at random. Select the Reset Button to clear the information or to start again.

User Stories

As a user, if I select the Get Random Celebrity Button, I can get the number of list items (celebrities), list of celebrities as well as the name of the celebrity (at random).

As a user, if I select the Reset Button, I can clear the information or start again.

Information Architecture

The list items (celebrities) are Anna Richardson, Joanna Gosling, Kate Garraway, Ruth Langsford, Susanna Reid and Victoria Beckham. All are strings. The random celebrity comes from one of these celebrities.

Features

Allows the user to get the random celebrity from the list items. Other information include the number of list items (celebrities) as well as the array of celebrities.

Technologies

Uses HTML5, CSS3, JavaScript, Google Fonts and Bootstrap 5.3.0-alpha1.

Testing

Ensure all user stories have been met. On the command line, type:

python3 -m http.server

Select Open Preview to preview. Select each of the buttons and check that the information meets the user story. For example, if I select the Reset Button, I expect the information to be cleared.

Deployment

Deployed on GitHub Pages at the main branch.

Credits

Content

Written by me.

Acknowledgements

dom-elements-by-tag-name's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.