Skip to main content

WHAT IS CSS?ADVANTAGES, SYNTAX.

 CSS PROGRAMMING LANGAUGE                                                                     disadvantages CSS full form is cascade style sheets , which we call it says about how you should display the HTML elements on the screen. CSS tells us the style of the webpage let us take a simple example, if we build a home first we lay out the design that is known as the HTML language. Where the CSS means layout which means giving instructions on how the furniture should be nothing but the CSS. For example if we take PayPal we can see that the background color blue says the CSS background-color property. Netflix is also the best way of saying  CSS property, but if we remove it will be a normal webpage but with the red color and the black plus symbols it looks like the best webpage. Versions of CSS There are different versions available now in case it is developed by Wium we have three versions that are css1, css2, and css3. Currently we are using this css3 version this is the best version fo

COMMENTS IN HTML?INLINE, MULTILINE.

 COMMENTS HTML

                                                                   
inline comment




  • The Comments are added to the web page using HTML, using this can explain in more detail and insert it in the source code.
  • Through this blog we are going to cover the different types of comments that is the single line, multiline, and the <comment> also.
  • Shortcut for the comment in HTML it might be in Windows or Linux it ctrl+/.
  • So what is the way to locate the comment it is through the console or by seeing the page source.

SYNTAX FOR COMMENTS 

  • In order to know how to write the correct format of the comments is <!--hi--> in this firstly angular brackets are the most important to be noted.
  •  At the starting the exclamatory mark and at the end there is no exclamatory.
  • Immediately if you want to add the comment you do it with two forward slashes we can do it.

TYPES OF COMMENTS

  • SINGLE LINE COMMENT:-Through this type of comment we can add more amount of information to the section of code.

<html>

<body>
<!--this is a comment-->
<h3>desktop</h3>

<!--single line comment -->
</body>

</html>
  • We start with the HTML open tag and then select the code you want to make the code as a comment do it with <!--......--->.

  • Multiline comment- You can use this comment for an explanation of the code, Use this in the future without deleting it just use the tags.
<html>
<body>

<!-- tags-->

<h2>bags</h2>

<!-- This is a multi-line comment -->

</body>
</html>

ADDING COMMENTS

  • With adding comments you can also add extra information as well as the remainders to  code.
<html>
<body>

<!--this is a comment-->
<p>hello</p>
<!--THIS ARE NOT DISPLAYED -->

</body>
</html>
  • Comments can be used anywhere in the code we shouldn't use them in the title tag.

HIDING 

  • You want to hide anything in the paragraph then make use of this hide tool in HTML.
<html>
<body>

<!-- this-->
<p>playing area</p>
<!-- flowers-->

</body>
</html>
  • See in the above program we don't want to make the flowers display on screen we use <!--flowers-->.
  • We could also hide the code we can do it by <!--...--> the meaning of hiding the content is nothing but saying to the user that it is not relevant.

INLINE COMMENT

  • Inline comments are added to hide the source code in the middle of the code.
<html>
<body>

<p>i like  <!-- choclate -->vanilla icecream.</p>

</body>
</html>
  • Code as you can see try to hide the content within the code by inline comment chocolate.

MULTILINE COMMENT

  • This is the type of comment in which you want to assign the comment to the multiple lines we use the multiline comment.
<html>
<head>
<title>this is comment</title>
<body>
<!--carbon dioxide is one of the major problems in the world, today we can control this by certain precautions that are by reducing the petrol vehicles, plastic pollution, seeing the RC pollution monthly if we don't control this the percentage level of this can increase-->
</body>
</html>

PRACTISE SET
  • Comment the tag this is the bag.
<h2>heading</h2>
<!--This is a comment -->
<p>This is a paragraph.</p>

  • The given above paragraph a comment it.
<!--<p>this is a new line</p>-->
  • Fill the blank spaces in the html comments.
<html>
<head>
<title>comment box</title>
<body>
<h2>this is paragraph</h2>
<  >is<  >
</body>
</html>
  • Apply the comment to the paragraph.
<html>
<head>
<title>sentence</title>
<body>
<!--the use of social media is increasing day by day mostly the screen time for all is abruptly increasing this will have adverse effects on our bodies anxiety, stress levels, and strain on the eyes-->
</body>
</html>
  • This is what we learned in this blog the comment concept, types of comments, add, hide.


Comments

Popular posts from this blog

WHAT IS C LANGUAGE? USES, COMPILER

C LANGUAGE C language compiler, C is one of the most popular languages in programming,  Dennis M.RITCHIE invented C programming in the year the 1970s,  C is a high-level programming language which means, its instructions are away from the understanding of the processor. There is a small difference between C language and C++ that is c does not provide object-oriented support. C++ gives class-based support(ORS) which means the same as the previous line in this blog. WHY LEARN C  LANGAUGE Learning C language and a compiler will be useful for coding. Especially for making a website with C language. If we learn C++ it will be useful for making a website. This means C language is only used for making a website but C++ is used for adding colors background colors etc. C language is one of the straightforward languages means easily understandable language. USES OF C LANGUAGE While the C language is used, in the creation of hardware devices.  It is also used in the OS, that is the operating sy

OPERATORS IN C?ARITHMETIC, ASSIGNMENT....

  O PERATORS IN C                                                                  operators A n op erator is a symbol that acts on data items known as operands in order to process them.   for eg-   a+b   ( "a" and "b" are operands, and "+" is an operator ).               c-a     ( " c "&"a"  both are operands "-" operator ).    We can do addition, subtraction, multiplication, division, etc........ Operand and the operator plays a very important role in the programming language. CLASSIFICATION OF OPERATORS B ased number of operands operating upon, operators are classified into three types. Unary operators(operate upon single operand). Binary operators(operate upon two operands). Ternary operators(three operands). On the type of execution they perform on the operands, operators are classed  into six types Arithmetic operator :-arithmetic operators are the operators which perform addition( + ), subtraction( - ), multipli

FUNCTIONS IN C?CLASSIFICATION, PARAMETERS, LOCAL VARIABLE.

 WHAT IS A FUNCTION                                                                         function A self-contained, named block of code that performs the specific task when called is nothing but a function. Note:-functions are the task performers in C projects.  FUNCTIONS CLASSIFICATION We have 2 types of functions they are user-defined functions and library functions. A pre-created function that comes with C installation is nothing but a library function, For eg:- print () and scanf(). Library functions are ready-made named code blocks. We need not create them, Just use them in our programs. We can make use of this library function by making the library function available to the program and the next step is calling the library function. Our own created function which is the program-created function is nothing but a user-defined function , eg- the main function is the example of a user-defined function. BENEFITS OF USER-DEFINED FUNCTION There are many benefits of user-defined func