Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how to add inline class to a paragraph in css

<!--This text will teach u to add inline and internal CSS -->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>


    <!-- internal css -->
    <style>
        p.example
         {color:khaki ;}
    </style>
    <!-- internal css -->


</head>
<body>

    <h3>Helllooooo</h3>


    <!-- inline css -->
    <span style = "color:mistyrose; background-color: coral;"> Text shown in mistyrose and with a coral background</span>
    <!-- inline css -->


    <!-- internal css implementation -->
    <p class = "example"> This text is in color</p>
    <!-- internal css implementation -->
    
</body>
</html>

<!-- Refer line 27 to get a understanding of using inline CSS  -->

<!-- So for internal css you have to first make a class and
then add that class in your style tag so that it knows which 3
paragraph or span or whatever tag to act upon -->

<!-- The way to make a class in paragraph or whatever is before 
the closing angular bracket u should add class = "your_classname" followed by
closing angular bracket -->

<!-- and in the style block you have to add it using a period (period = .)
followed by your class name -->

<!-- Refer lines 14 and 32 for internal CSS -->

<!-- -->
Comment

PREVIOUS NEXT
Code Example
Css :: laravel css image url 
Css :: second scrollbar appears 
Css :: text area resize css 
Css :: iPhone XS css 
Css :: border color css 
Css :: center text horizontally and vertically inside a div in css 
Css :: underline css animation hover 
Css :: get second child div css 
Css :: How to remove horizontal scrollbar and yet allow vertical 
Css :: bootstrap icons sdn 
Css :: rgb gold color 
Css :: css center 
Css :: underline css still there after text-decoration: none 
Css :: css transform border radius 
Css :: background invisible css 
Css :: how bold text in css 
Css :: custom horizontal scrollbar css 
Css :: css how to make something italized 
Css :: html how to use a background image fill not stretch 
Css :: css text spacing 
Css :: kerning css 
Css :: how to change another element on hover 
Css :: css button border 
Css :: css3 background image curve 
Css :: text orientation css 
Css :: Add elipses to a dom element with css 
Css :: css add shade over background image 
Css :: css transform size 
Css :: gradient 3 colors 
Css :: mask image css 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =