Skip to main content

TYPE OF HTML CSS

 Types of HTML CSS

To change a HTML documents style Three Types to Add CSS in HTML
1.     Inline CSS: To using by <p style> change a style of HTML Attribute.
    2.     Internal CSS: by using <style> tag in the below of <head> tag.
        3.    External CSS: By using <link> element in link to external CSS file.

INLINE CSS

We use inline CSS in a line
    Example: <p style=“color:green;”> Green Text </p>
Here we use inline css…

INTERNAL CSS

In this section we use Internal CSS.
    We use <style> element under the <head> section.
Example:
        <style> 
            p {color:green ;} 
                </style>

EXTERNAL CSS

External CSS create a new file in sublime text and save with filename.css extention.
Link with your css file code in below
<link rel=“stylesheet” href=“filename.css”>
This code also write on under <head> tag....

Comments

Popular posts from this blog

What is CSS (Cascading Style Sheet)

Cascading Style Sheets (CSS): In the dynamic world of web development, HTML (Hypertext Markup Language) serves as the foundation, laying out the structure of a webpage. However, for a webpage to captivate its audience with visually appealing designs and layouts, it requires the artistic touch of CSS, or Cascading Style Sheets. 👉Defining CSS: CSS is a style sheet language used to describe the presentation of a document written in HTML or XML. It enables web developers to control the visual aspects of a webpage, such as colors, fonts, spacing, and positioning, without altering the underlying structure defined by HTML. The term "Cascading" in CSS refers to the order of priority the styles are applied, allowing for flexibility and consistency. 👉Separation of Concerns: One of the key principles of web development is the separation of concerns, and CSS plays a crucial role in achieving this. While HTML focuses on the structure and content of a webpage, CSS handles the aesthetics ...

HTML Classes and ID's Attributes

  The class Attribute The  class  attribute is often used to point to a class name in a style sheet. It can also be used by a JavaScript to access and manipulate elements with the specific name. In the following example we have three  <div>  elements with a  class  attribute with the value of ".classes". All of the three  <div>  elements will be styled equally according to the  .classes  style definition in the head section: You can manipulate your and design by the classes. Example: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> html classes and IDs </title> <style type="text/css"> .classes{ background-color: green; color: ghostwhite; border: 2px 4px 3px 2px; margin: 20px; padding: 20px; font-family: arial,; } </style> </head> <body...

Tables in HTML

How to Use Table tag in HTML In this blog we understand the table elements in HTML. How to Create a Tables in HTML Firstly we understand table elements.  1. when we create a table in editor type with <table> 2. after that we create a table row with <tr> 3. between <tr> we create table data <td> see it into sublime text editor <body> <table border="1px"> <caption> Student Data</caption> <tr> <td> Name</td> <td>Roll NO</td> <td>Marks</td> <td>total Marks</td> <td>Percentage</td> </tr> <tr> <td> JOhn</td> <td>32655</td> <td>250</td> <td>500</td> <td>50%</td> </tr> <tr> <td> Carter</td> <td>1254</td> <td>250</td> <td>500</td> <td>50%</td> </tr> </table> W...