Explain Codes LogoExplain Codes Logo

Best Articles — Page 376

Explaining Python's '__enter__' and '__exit__'

python
context-manager
exception-handling
best-practices

How can I write a `try`/`except` block that catches all exceptions?

python
exception-handling
best-practices
logging

Get the values from the "GET" parameters (JavaScript)

javascript
url-parsing
url-search-params
polyfills

How do I retrieve if the popstate event comes from back or forward actions with the HTML5 pushstate?

javascript
prompt-engineering
history-api
navigation-direction

How can I get multiple counts with one SQL query?

sql
performance
best-practices
conditional-aggregation

How to get the last day of month in postgres?

sql
interval-expression
date-trunc
custom-function

How to make the overflow CSS property work with hidden as value

html
responsive-design
css-grid
flexbox

How to loop through a HashMap in JSP?

java
prompt-engineering
best-practices
model-citizens-of-mvc

Displaying HTML with Blade shows the HTML code

html
blade
laravel
templating-engine

Footer at bottom of page or content, whichever is lower

html
responsive-design
css-grid
viewport-units

How do you click on an element with text in Puppeteer?

javascript
xpath
puppeteer
selectors

How can I change an element's class with JavaScript?

javascript
class-manipulation
dom-manipulation
event-handling

What's the difference between event.stopPropagation and event.preventDefault?

javascript
event-handling
event-propagation
event-prevention

Html5: Decoding the `itemscope` attribute in layman's terms

html
microdata
seo-strategies
metadata

Html: Is it possible to have a FORM tag in each TABLE ROW in a XHTML valid way?

html
responsive-design
best-practices
form-handling

Smooth scroll to div id jQuery

javascript
smooth-scroll
jquery
cross-browser-compatibility

What does (1,1) mean in SQL?

sql
identity-columns
auto-incrementing
database-performance

How to apply CSS to iframe?

html
responsive-design
cross-browser
css-link

Pad a number with leading zeros in JavaScript

javascript
prompt-engineering
functions
polyfills

How can I horizontally center an element?

html
responsive-design
css
layout