question archive 1)What is the form of an HTML comment? 2)What are the two integer classes of Ruby?

1)What is the form of an HTML comment? 2)What are the two integer classes of Ruby?

Subject:Computer SciencePrice:4.89 Bought3

1)What is the form of an HTML comment?

2)What are the two integer classes of Ruby?

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

1)

Comment is a bit of code which is ignored by any internet browser. It is a decent practice to include remarks into your HTML code, particularly in complex reports, to show areas of an document, and some other notes to anybody taking a gander at the code. Comments help you and others comprehend your code and builds code readability.

 

To comment out in HTML, insert information between "<!--" and "-->"  tags. Thus browser won't show this note and completely ignored that portion.

 

Commenting in HTML permits developers to leave notes about their code, its usefulness or to demonstrate vital changes for what's to come.

 

Example :

 

Code in the HTML File :

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------

 

<!DOCTYPE html>
<html>
<head>
<title>HTML Comment Example</title>
</head>
<body>

<div>

<p>This text is visible. Check the source code for multi-line comment.</p>

<!--  
Hello, world! I am a comment and I am
displayed in multiple lines!
-->

</div>

</body>
</html>

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------

 

When we save the file with .html extension and run it in the browser, it displays as follows:

2)

Two integer classes of ruby are:

 

1.Fixnum

 

2.Bignum

 

Fixnum holds integer values that are shown in the native machine word;

 

Bignum holds the integer value outside the range of Fixnum.

Related Questions