You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most basic way to apply a style to an HTML element is to use the html `style` attribute within the tag. This is called "inline styles" and works like this:
7
+
8
+
The most **basic** way to apply a style to an HTML element is to use the html `style` attribute within the tag. This is called "inline styles" and works like this:
8
9
9
10
```HTML
10
11
<ahref="google.com"style="color: red; font-size: 14px;">Go to google</a>
11
12
```
12
13
13
14
This will set the text color of the link above to red, and the font size to 14 pixels.
14
-
In contemporary web design this way of applying styles is discouraged, because it is not efficient - you have to apply styles tag by tag. But you will run into examples of it and need to be familiar with it.
15
+
16
+
In contemporary web design this way of applying styles is **discouraged**, because it is not efficient - you have to apply styles tag by tag. But you will run into examples of it and need to be familiar with it.
15
17
16
18
To apply styles you always have to follow thеse steps:
0 commit comments