Posts

Showing posts from August, 2024

how to add external fonts in HTML/CSS using google fonts

  How to add external fonts in HTML/CSS using google fonts.

To make navigation using the select tag which contains hyperlink text options

 To make navigation using the select tag which contains hyperlink text options. Make the select tag of your choice  Give any Id of your choice to the select tag, in my case i have given id navigation Now paste the below script inside the body tag in your html file. and change the id in getdocumentid() function by the id of your select tag.   < script >             const navigation = document . getElementById ( 'id' );             navigation . addEventListener ( 'change' , function () {                 const selectedOption = this . value ;                 if ( selectedOption !== '' ) {                     window . location . href = selectedOption ;                 }             });       ...