INTRO

INTRO

New

Intro to the Designer

Intro to the Designer

New

2:48

Intro to HTML & CSS

Intro to HTML & CSS

New

3:38

HTML Structure

HTML Structure

New

1:55

WEB STRUCTURE

WEB STRUCTURE

New

The Box Model

The Box Model

New

1:54

Element Hierarchy

Element Hierarchy

New

3:57

Navigator Panel

Navigator Panel

New

2:45

ELEMENTS

ELEMENTS

New

Element Panel

Element Panel

New

1:49

Section

Section

New

4:14

Container

Container

New

2:44

Columns

Columns

New

2:22

Div block

Div block

New

3:37

Buttons & Links

Buttons & Links

New

Button

Button

New

14:08

Link Block

Link Block

New

9:35

Text Link

Text Link

New

1:16

Typography

Typography

New

3:20

Heading

Heading

New

2:02

Paragraph

Paragraph

New

4:42

Rich Text

Rich Text

New

3:52

Text Block

Text Block

New

0:56

Block Quote

Block Quote

New

0:42

List

List

New

2:31

Media

Media

New

Image

Image

New

3:39

Image File Types

Image File Types

New

2:22

Image Resolution

Image Resolution

New

3:28

Assets Panel

Assets Panel

New

3:08

Video

Video

New

1:20

Background Video

Background Video

New

3:15

Components

Components

New

Intro to Forms

Intro to Forms

New

4:55

Styling Forms

Styling Forms

New

2:55

Navbar

Navbar

New

9:38

Styling a Navbar

Styling a Navbar

New

4:34

Navbar Menu Button

Navbar Menu Button

New

4:51

Slider

Slider

New

4:56

Tabs

Tabs

New

4:38

Lightbox

Lightbox

New

3:44

Map

Map

New

2:58

Dropdown

Dropdown

New

4:38

Social Media Buttons

Social Media Buttons

New

2:49

Custom Code Embed

Custom Code Embed

New

1:24

Symbols

Symbols

New

3:47

Styling Basics

Styling Basics

New

Intro to Style Panel

Intro to Style Panel

New

3:15

HTML Tags

HTML Tags

New

3:59

Classes

Classes

New

2:46

Combo Classes

Combo Classes

New

4:05

Text Style Inheritance

Text Style Inheritance

New

3:18

Style Manager

Style Manager

New

1:56

States

States

New

2:47

Transitions

Transitions

New

2:40

Color Picker & Swatches

Color Picker & Swatches

New

3:51

Color Values

Color Values

New

3:22

Layout Basics

Layout Basics

New

Intro to Web Layout

Intro to Web Layout

New

2:27

Display Settings

Display Settings

New

2:54

Padding & Margin

Padding & Margin

New

2:48

Width & Height Units

Width & Height Units

New

3:59

Floats & Clears

Floats & Clears

New

1:52

Flexbox & Grid

Flexbox & Grid

New

Intro to Flexbox

Intro to Flexbox

New

2:27

Centering elements with Flexbox

Centering elements with Flexbox

New

1:20

Equal height layouts with Flexbox

Equal height layouts with Flexbox

New

1:47

Grid layouts overview

Grid layouts overview

New

4:18

Flexbox vs. Grid

Flexbox vs. Grid

New

4:00

Advanced Layout

Advanced Layout

New

Positioning Overview

Positioning Overview

New

1:48

Relative Positioning

Relative Positioning

New

1:43

Absolute Positioning

Absolute Positioning

New

1:43

Fixed Positioning

Fixed Positioning

New

1:27

Z-Index

Z-Index

New

1:49

Overflow

Overflow

New

1:49

Styling Typography

Styling Typography

New

Intro to Web Typography

Intro to Web Typography

New

3:20

Typography Units

Typography Units

New

2:43

Line Height

Line Height

New

1:38

Advanced Typography Styles

Advanced Typography Styles

New

3:01

Google Fonts

Google Fonts

New

1:18

Custom Fonts

Custom Fonts

New

1:27

Text Shadow

Text Shadow

New

2:36

Background & Border Styles

Background & Border Styles

New

Background Styles Overview

Background Styles Overview

New

2:20

Background Image

Background Image

New

2:04

Background Gradient

Background Gradient

New

3:02

Border

Border

New

3:07

Border Radius

Border Radius

New

3:22

Box Shadow

Box Shadow

New

3:34

3D Styles

3D Styles

New

Intro to 3D

Intro to 3D

New

2:25

3D Perspective

3D Perspective

New

4:01

2D & 3D Transforms

2D & 3D Transforms

New

4:53

EFFECTS

EFFECTS

New

Opacity

Opacity

New

1:44

Filters

Filters

New

2:59

Cursors

Cursors

New

1:45

Responsive Design

Responsive Design

New

new course
CSS grid landing page tutorial (36min)

Lesson info

Lesson info

In Webflow, HTML tags give us an easy way to control the default styling for a particular element, without creating a unique class. For example, you can define the default styles for all paragraphs by editing the All Paragraphs tag. Adding a class with styles will override these default styles.

Here’s what we’ll be covering:

  1. Accessing tags
  2. ‍Styling tags versus classes
  3. ‍Example 1: All H1 Headings tag
  4. ‍Example 2: All Links tag
  5. ‍Example 3: All Images tag

Explore this project

Want to dig into the project featured in this video and see how everything is put together? We've included the full project we used when making this lesson, and we've shared the link right under this very paragraph.

View and clone this projectDownload lesson assets
Clone this projectDownload project assets

Transcript

Tags give us a great way to control the default styling for a particular element type. As we already know, we can set a lot of defaults for our project — like font settings — inside our Body (All Pages) Tag. This is a great starting point.

So we're going cover three examples for styling Tags: Headings, Links, and Images.

Let's do Headings. If we drag in a Heading from our Elements panel? Make it an H1? Of course, we're getting some style values here, like font, from our Body (All Pages) Tag.

But let's use our dropdown, and select All H1 Headings. And just like that, we have access to styling the Tag. All H1 Headings throughout our project. Let's make some changes to the margin to affect spacing, and we can go in and affect font size. Maybe we want all our H1s to have a thicker font weight so we can adjust the font weight.

And now whenever we drag an H1 into our project, we're starting with these defaults.

This doesn't stop us from using classes. In fact, we can create a class on any of our H1s — maybe this one is a major Heading — so we'll make some changes to affect that. These changes are using the All H1 Headings Tag as a starting point. Of course, not every H1 in our project needs to look identical. Or we can remove that class, and check our orange indicator to see that, once again, things are being inherited from our All H1 Headings Tag.

So, headings here can take a lot of styling cues from the Body. When we modify our All H1 Headings Tag, we're affecting the default styling for H1s. We can style further by adding a class, and we can even do variants of those using combo classes.

The combo class takes its styling cues from its base class, which takes its styling cues from the Tag, which takes its styling cues from the body, which takes its styling cues from GQ.

That's Headings.

Let's power through Links. Here's a paragraph. Let's go in (double-click) then select some text. And we'll make it a Link. Let's do the same thing for some more text, again, making this a Link. And with any of these selected, let's go up in our Style panel and hit the dropdown to select All Links.

From here, we can mess with text decoration. Or we can change our default Link color. Keep in mind that All Links also serves as the basis for other types of Links. So in Hover here, we can change the font color. But if we go over again to the Elements panel, then we drag in a button, on hover, we can see that our All Links style affects this, too. So that's something to keep in mind when styling.

That's the All Links Tag.

Let's end on Images.

From our Asset Manager, we'll drag an Image right onto the page. And with any Image selected (like this one), let's go to our All Images Tag. Actually, this is a great time to go back and show that we can do this even after we've added a class or combo class. Let's create a quick class and hit enter. And now, we can click in over here, and select our Tag right from the dropdown: the All Images Tag.

Say, by default, we want Image elements we add to our project to have rounded corners. We can set our rounding, and not only can we see it on the Canvas, but if we go into the Asset Manager and pick a new Image to drag in? It's carrying those defaults from the Tag (the All Images Tag).

That's Images.

So. Tags. Do you need them? Hanes might argue "no." Others, like Dale, will argue "yes."

The truth is, the real answer is somewhere in between: it's entirely up to you. If you're creating a quick one-page project with a Heading and a paragraph, do you need to go in and configure all your Tags? Probably not. But as you scale, Tags can save you a ton of time by giving certain element types a starting point. A basis for styles on particular kinds of elements.

But that's it. Those are some of our thoughts on Tags.