Callout: did you know that most CO2 is emitted by electricity and heat
Notice: great to hear you've stopped long distance travel
Lists
Just use regular HTML
Unordered lists
Use semantic HTML and rely on it without using additional classes
Do not reset the browser stylesheets (there might be a reason for it)
...
Ordered lists
Use semantic HTML and rely on it without using additional classes
Do not reset the browser stylesheets (there might be a reason for it)
...
Definition lists
CSS
Cascading Style Sheets
HTML
HyperText Markup Language
The above is basically unstyled. You can add a .no-inset class to remove the default padding. A slight bottom margin is added to keep the visual grouping
CSS
Cascading Style Sheets
HTML
HyperText Markup Language
Finally, you there is an inline variant, where the dt and dd are displayed inline. This is done by adding a .inline class to the dl-element.
CSS
Cascading Style Sheets. Also here we add a small bottom margin to make sure that even when the text is very long, like this, there is some visual grouping.
HTML
HyperText Markup Language
Images
Figure with a figcaption
Warming Strips 1850-2024 for the globe provided by #ShowYourStripes, data by UK MetOffice
Note, this also works in article view, see below.
Forms
Note we do a few nice things, this is a form (but invisible)
Navigation
You have already seen the main navigation in the top, wrap an unordered list in a nav-element. Make it sitcky by adding the .sticky class (see this page's main nav)
You can also have navigation in main; as a sub-navigation. Make sure you give your navigation a unique `aria-label` (leave out 'navigation, it will otherwise be double read').
Tables
Head
Other head
Foot
€ 12335.00
Number next (with .number class)
€ 12.00
Other number (with .number class)
€ 12323.00
Sorting tables
When applying aria-sort="ascending" or aria-sort="descending" (see MDN on Aria Sort) you get automatic content after
# My favourite programming language is ruby
def say(what)
puts what || ["Euh", "Ah", "..."].sample
end
10.times { say "Hello!" } # prints Hello! 10 times :)
10.times { say } # prints randomly one of the texts "Euh", "Ah" ...
Aside: I have some concerns about ruby and its climate impact, but there are multiple ways to make delivery more efficient. Caching is one of them.
Inline code
Sometimes you just want to say that a method called puts writes something to the screen.
Blockquote
Friday's for future, which started with Greta Thunberg's weekly strike works towards the following goals
Keep the global temperature rise below 1.5 °C compared to pre-industrial levels.
Ensure climate justice and equity.
Listen to the best united science currently available.
Keep the global temperature rise below 1.5 °C compared to pre-industrial levels.
Ensure climate justice and equity.
Listen to the best united science currently available.
We can present this a bit nicer using a figure block
Keep the global temperature rise below 1.5 °C compared to pre-industrial levels.
Ensure climate justice and equity.
Listen to the best united science currently available.
Meta before meta was just meta. So that's something you want to add to the top of your article.
This article was published about 2 hours ago.
Meta below a title
The paragraph won't exercise any margin on bottom.
This is a paragraph after the meta though.
Columns
Simply wrap it in a .u-columns class
Column 1
Column 2
It just will try to make things fit:
Column 1
Column 2
Column 3
Column 4
Column 5
A single column will just center at max 50%
Centered column
Main demo As one has got to demo
when you wrap both a main and an aside in .u-columns; columns will be slightly different
this is a main element
this is a main element
this is a main element
this is a main element
Back to a single main
Note: you should really have just a single main section in your page.
Printing
A few tools for printing have been added.
To make a page break, add a .page class to a hr-element.
This will be on a single page
This is supposed to be an A4 print preview
.not-for-print is not visible here
You can hide things for print using a .not-for-print class, see below.
.not-for-print is not visible here
Articles
An article with a H1 gets special treatment
I am level 2
Styling the third level
And since this is a perfect four
Still, we do five
And we won't forget about 6
Present-day climate change includes both global warming—the ongoing increase in global average temperature—and its wider effects on Earth’s climate system. Climate change in a broader sense also includes previous long-term changes to Earth's climate. The current rise in global temperatures is driven by human activities, especially fossil fuel burning since the Industrial Revolution.[3][4]
A demo with columns
Present-day climate change includes both global warming—the ongoing increase in global average temperature—and its wider effects on Earth’s climate system. Climate change in a broader sense also includes previous long-term changes to Earth's climate. The current rise in global temperatures is driven by human activities, especially fossil fuel burning since the Industrial Revolution.
Fossil fuel use, deforestation, and some agricultural and industrial practices release greenhouse gases.[5] These gases absorb some of the heat that the Earth radiates after it warms from sunlight, warming the lower atmosphere. Carbon dioxide, the primary gas driving global warming, has increased in concentration by about 50% since the pre-industrial era to levels not seen for millions of years.
Warming Strips 1850-2024 for the globe provided by #ShowYourStripes, data by UK MetOffice
Climate change has an increasingly large impact on the environment. Deserts are expanding, while heat waves and wildfires are becoming more common.[7] Amplified warming in the Arctic has contributed to thawing permafrost, retreat of glaciers and sea ice decline.[8] Higher temperatures are also causing more intense storms, droughts, and other weather extremes.[9] Rapid environmental change in mountains, coral reefs, and the Arctic is forcing many species to relocate or become extinct.[10] Even if efforts to minimize future warming are successful, some effects will continue for centuries. These include ocean heating, ocean acidification and sea level rise.[11]
Impact
Environmental effects
This is a demo of a column width .u-columns--reduced-class applied.
The environmental effects of climate change are broad and far-reaching, affecting oceans, ice, and weather. Changes may occur gradually or rapidly. Evidence for these effects comes from studying climate change in the past, from modelling, and from modern observations.[189] Since the 1950s, droughts and heat waves have appeared simultaneously with increasing frequency.[190] Extremely wet or dry events within the monsoon period have increased in India and East Asia.[191] Monsoonal precipitation over the Northern Hemisphere has increased since 1980.[192] The rainfall rate and intensity of hurricanes and typhoons is likely increasing,[193] and the geographic range likely expanding poleward in response to climate warming.[194] Frequency of tropical cyclones has not increased as a result of climate change.[195]
# My favourite language is ruby
10.times { puts "Hello!" } # prints Hello! 10 times :)
Global sea level is rising as a consequence of thermal expansion and the melting of glaciers and ice sheets. Sea level rise has increased over time, reaching 4.8 cm per decade between 2014 and 2023.[197] Over the 21st century, the IPCC projects 32–62 cm of sea level rise under a low emission scenario, 44–76 cm under an intermediate one and 65–101 cm under a very high emission scenario.[198] Marine ice sheet instability processes in Antarctica may add substantially to these values,[199] including the possibility of a 2-meter sea level rise by 2100 under high emissions.[200]
Reducing and recapturing emissions
The following main block is a demo of an main, immediately followed with a first-child article, making a text stand out more, to focus on the text.
Climate change can be mitigated by reducing the rate at which greenhouse gases are emitted into the atmosphere, and by increasing the rate at which carbon dioxide is removed from the atmosphere.[274] To limit global warming to less than 1.5 °C global greenhouse gas emissions needs to be net-zero by 2050, or by 2070 with a 2 °C target.[275] This requires far-reaching, systemic changes on an unprecedented scale in energy, land, cities, transport, buildings, and industry.[276]
The United Nations Environment Programme estimates that countries need to triple their pledges under the Paris Agreement within the next decade to limit global warming to 2 °C. An even greater level of reduction is required to meet the 1.5 °C goal.[277] With pledges made under the Paris Agreement as of 2024, there would be a 66% chance that global warming is kept under 2.8 °C by the end of the century (range: 1.9–3.7 °C, depending on exact implementation and technological progress). When only considering current policies, this raises to 3.1 °C.[278] Globally, limiting warming to 2 °C may result in higher economic benefits than economic costs.[279]