Density Volume Ture Weight Calculator

Density Volume True Weight Calculator & Guide body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; margin: 0; padding: 0; } .container { max-width: 960px; margin: 20px auto; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } header { background-color: #004a99; color: #fff; padding: 20px; text-align: center; border-radius: 8px 8px 0 0; margin-bottom: 20px; } header h1 { margin: 0; font-size: 2.2em; } h2, h3 { color: #004a99; margin-top: 1.5em; margin-bottom: 0.5em; } .loan-calc-container { background-color: #e9ecef; padding: 25px; border-radius: 8px; margin-bottom: 30px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); } .input-group { margin-bottom: 15px; } .input-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #004a99; } .input-group input[type="number"], .input-group select { width: calc(100% – 16px); padding: 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 1em; box-sizing: border-box; } .input-group input[type="number"]:focus, .input-group select:focus { border-color: #004a99; outline: none; box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.2); } .input-group .helper-text { font-size: 0.85em; color: #6c757d; margin-top: 5px; display: block; } .input-group .error-message { color: #dc3545; font-size: 0.8em; margin-top: 5px; display: none; /* Hidden by default */ } button { background-color: #004a99; color: white; border: none; padding: 12px 25px; border-radius: 5px; font-size: 1.1em; cursor: pointer; margin-right: 10px; transition: background-color 0.3s ease; } button:hover { background-color: #003b7d; } button.secondary { background-color: #6c757d; } button.secondary:hover { background-color: #5a6268; } .results-container { background-color: #fff; padding: 25px; border-radius: 8px; margin-top: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .results-container h3 { margin-top: 0; color: #28a745; } .result-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; } .result-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .result-label { font-weight: 600; color: #004a99; display: block; margin-bottom: 5px; } .result-value { font-size: 1.5em; font-weight: bold; color: #28a745; } .primary-result .result-value { font-size: 2em; color: #004a99; background-color: #d4edda; padding: 10px 15px; border-radius: 5px; display: inline-block; } .formula-explanation { font-size: 0.9em; color: #6c757d; margin-top: 10px; padding: 10px; background-color: #f1f3f5; border-left: 3px solid #004a99; } table { width: 100%; border-collapse: collapse; margin-top: 20px; margin-bottom: 20px; } th, td { padding: 12px; text-align: left; border: 1px solid #dee2e6; } th { background-color: #004a99; color: white; } tr:nth-child(even) { background-color: #f2f2f2; } caption { font-size: 1.1em; font-weight: bold; color: #004a99; margin-bottom: 10px; caption-side: top; text-align: left; } .chart-container { width: 100%; margin-top: 20px; text-align: center; } .article-content { margin-top: 30px; background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .article-content p, .article-content ul, .article-content ol { margin-bottom: 1.5em; } .article-content ul { list-style: disc; margin-left: 20px; } .article-content ol { list-style: decimal; margin-left: 20px; } .article-content a { color: #004a99; text-decoration: none; } .article-content a:hover { text-decoration: underline; } .faq-item { border: 1px solid #eee; border-radius: 5px; margin-bottom: 15px; padding: 15px; background-color: #fdfdfd; } .faq-item h4 { margin-top: 0; color: #004a99; cursor: pointer; display: flex; justify-content: space-between; align-items: center; } .faq-item h4::after { content: '+'; font-size: 1.4em; font-weight: bold; } .faq-item.active h4::after { content: '-'; } .faq-content { display: none; margin-top: 10px; font-size: 0.95em; color: #555; } .related-tools { margin-top: 30px; background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .related-tools ul { list-style: none; padding: 0; } .related-tools li { margin-bottom: 15px; } .related-tools a { font-weight: bold; color: #004a99; text-decoration: none; } .related-tools a:hover { text-decoration: underline; } .related-tools span { display: block; font-size: 0.9em; color: #6c757d; margin-top: 5px; } footer { text-align: center; padding: 20px; margin-top: 30px; font-size: 0.9em; color: #6c757d; }

Density Volume True Weight Calculator

Accurately determine the true weight of your materials based on their density and volume.

Calculate True Weight

Enter the density of the material (e.g., kg/m³, g/cm³).
kg/m³ g/cm³ lb/ft³ lb/in³ Select the unit for density.
Enter the volume of the material (e.g., m³, cm³, ft³, in³).
m³ cm³ ft³ in³ Select the unit for volume.

Calculation Results

True Weight
Normalized Density kg/m³
Normalized Volume
Volume Conversion Factor
Formula Used: True Weight = (Density x Volume Conversion Factor) x Volume

We normalize density to kg/m³ and volume to m³ for consistent calculation. The true weight is then derived by multiplying the normalized density by the normalized volume.

Weight vs. Volume at Constant Density (kg/m³ = 7850)

Density Unit Conversions to kg/m³
Density Unit Conversion Factor (to kg/m³) Example Value
kg/m³ 1 7850
g/cm³ 1000 7.85
lb/ft³ 16.0185 489.8
lb/in³ 27679.9 0.283

Density Volume True Weight Calculator

A robust understanding of material properties is fundamental across numerous scientific, engineering, and industrial disciplines. The **density volume true weight calculator** is an indispensable tool for anyone needing to determine the precise weight of a substance given its density and volume. This calculator simplifies complex physics calculations, making it accessible for students, professionals, and hobbyists alike. By accurately converting various units and applying the core physics principles, this tool ensures you get reliable weight measurements for your projects, inventory management, or material assessments.

What is Density Volume True Weight Calculator?

The **density volume true weight calculator** is a digital tool designed to compute the actual mass (weight) of a material when its density and the space it occupies (volume) are known. It fundamentally operates on the principle that weight is a product of density and volume. This calculator is particularly useful because it can handle a wide range of units for both density and volume, performing necessary conversions to provide a consistent and accurate output. It's more than just a simple converter; it's a problem-solver for anyone dealing with materials in physical form.

Who Should Use It:

  • Engineers: For material selection, structural analysis, and load calculations.
  • Scientists: In laboratory experiments involving mass-volume relationships.
  • Manufacturers: For quality control, inventory tracking, and raw material costing.
  • Students: Learning fundamental physics and chemistry concepts.
  • Logistics & Shipping Professionals: Estimating cargo weight and space requirements.
  • Material Suppliers: Accurately quoting material costs based on weight.

Common Misconceptions:

  • Density is constant: While often treated as a fixed property, density can vary slightly with temperature and pressure, especially for gases and liquids. The calculator assumes standard conditions or specified values.
  • Weight and Mass are the same: Technically, mass is the amount of matter, while weight is the force of gravity on that mass. However, in common usage and for most practical applications handled by this calculator, "weight" refers to mass, typically in kilograms or pounds.
  • All units are interchangeable without conversion: This is a critical point. Using inconsistent units (e.g., density in g/cm³ and volume in m³) without proper conversion will lead to drastically incorrect weight calculations. The calculator handles these conversions automatically.

Density Volume True Weight Calculator Formula and Mathematical Explanation

The core principle behind calculating true weight from density and volume is a fundamental physics equation:

Weight = Density × Volume

However, the practical application requires careful consideration of units. To ensure accuracy, especially when dealing with different measurement systems (metric vs. imperial), the calculator first normalizes the input values to a common standard, typically kilograms per cubic meter (kg/m³) for density and cubic meters (m³) for volume.

Step-by-Step Derivation:

  1. Input Acquisition: The user provides the material's density and volume, along with their respective units.
  2. Density Normalization: The input density is converted into the standard unit (kg/m³). A conversion factor is applied based on the selected density unit. For example, if the density is given in g/cm³, it's multiplied by 1000 to convert it to kg/m³ (since 1 g/cm³ = 1000 kg/m³).
  3. Volume Normalization: Similarly, the input volume is converted into the standard unit (m³). A specific conversion factor is applied based on the selected volume unit. For instance, if the volume is in cm³, it's divided by 1,000,000 to convert it to m³ (since 1 m³ = 1,000,000 cm³).
  4. Weight Calculation: Once both density and volume are in consistent, normalized units (kg/m³ and m³, respectively), the true weight is calculated by multiplying these two normalized values. The resulting unit will be kilograms (kg).
  5. Unit Conversion (Optional): The final weight can be optionally converted to other common units like pounds (lb) for user convenience.

Variable Explanations:

Variable Meaning Unit Typical Range
Density (ρ) Mass per unit volume of a substance. kg/m³, g/cm³, lb/ft³, lb/in³ 0.001 (Air) to >20000 (Osmium)
Volume (V) The amount of three-dimensional space occupied by the material. m³, cm³, ft³, in³ Highly variable, from fractions of a unit to thousands of units.
True Weight (W) The force exerted on a mass by gravity; often used interchangeably with mass in practical contexts. Calculated as Density × Volume. kg, lb Dependent on Density and Volume inputs.
Density Unit The unit used to express density (e.g., kilograms per cubic meter). Unit String kg/m³, g/cm³, lb/ft³, lb/in³
Volume Unit The unit used to express volume (e.g., cubic meters). Unit String m³, cm³, ft³, in³

Practical Examples (Real-World Use Cases)

Example 1: Calculating the Weight of a Steel Component

An engineer needs to determine the weight of a steel block for structural calculations. The block has the following dimensions and material properties:

  • Material Density: 7.85 g/cm³
  • Volume: 500 cm³

Using the calculator:

  • Input Density: 7.85
  • Select Density Unit: g/cm³
  • Input Volume: 500
  • Select Volume Unit: cm³

Calculator Output:

  • Normalized Density: 7850 kg/m³
  • Normalized Volume: 0.0005 m³
  • Volume Conversion Factor: 1,000,000 (cm³ to m³)
  • True Weight: 3.925 kg

Interpretation: The steel block weighs approximately 3.925 kilograms. This value is crucial for ensuring the structural integrity of the assembly it's part of.

Example 2: Calculating the Weight of an Aluminum Sheet

A manufacturing company needs to estimate the weight of an aluminum sheet for shipping purposes. The sheet's properties are:

  • Material Density: 168 lb/ft³
  • Volume: 2 ft³

Using the calculator:

  • Input Density: 168
  • Select Density Unit: lb/ft³
  • Input Volume: 2
  • Select Volume Unit: ft³

Calculator Output:

  • Normalized Density: 2692.5 kg/m³
  • Normalized Volume: 0.05663 m³
  • Volume Conversion Factor: 1 (ft³ to m³ is approx 0.0283168, but here we are showing the factor to get to m³)
  • True Weight: 7.53 lb (The calculator likely also shows a kg equivalent, approx 3.416 kg)

Interpretation: The aluminum sheet weighs approximately 7.53 pounds. This helps in calculating shipping costs and determining handling procedures.

How to Use This Density Volume True Weight Calculator

Using the **density volume true weight calculator** is straightforward. Follow these simple steps to get accurate weight measurements:

  1. Identify Material Density: Find the density of the material you are working with. This is often provided by the manufacturer or can be found in material property tables.
  2. Enter Density Value: Input the numerical value of the density into the 'Material Density' field.
  3. Select Density Unit: Choose the correct unit for the density you entered from the 'Density Unit' dropdown menu (e.g., g/cm³, kg/m³).
  4. Identify Material Volume: Determine the volume the material occupies. This might involve measuring dimensions (length, width, height) and calculating volume (e.g., L × W × H for a rectangular prism) or using specific volume measurements.
  5. Enter Volume Value: Input the numerical value of the volume into the 'Volume' field.
  6. Select Volume Unit: Choose the correct unit for the volume you entered from the 'Volume Unit' dropdown menu (e.g., cm³, m³).
  7. Calculate: Click the 'Calculate True Weight' button.

How to Read Results:

  • True Weight: This is the primary result, showing the calculated weight of the material in kilograms (and potentially pounds).
  • Normalized Density: Displays the density value after it has been converted to kg/m³.
  • Normalized Volume: Shows the volume value after conversion to m³.
  • Volume Conversion Factor: Indicates the multiplier used to convert the input volume unit to cubic meters.

Decision-Making Guidance:

  • Use the calculated 'True Weight' for accurate inventory management, cost estimation, and logistical planning.
  • Compare the calculated weight against expected values to verify material type or density assumptions.
  • The intermediate values (Normalized Density, Normalized Volume) can be useful for cross-referencing with standard material property databases.

Key Factors That Affect Density Volume True Weight Calculations

While the formula Weight = Density × Volume is simple, several factors can influence the accuracy and interpretation of results from a **density volume true weight calculator**:

  1. Material Purity and Composition: The density of a material is inherently tied to its elemental composition and atomic structure. Variations in purity or the presence of alloys can alter the density, thus affecting the calculated weight. For example, different grades of steel have slightly different densities.
  2. Temperature and Pressure: These environmental conditions significantly impact the density of gases and liquids, and to a lesser extent, solids. Liquids expand when heated, decreasing density, while gases expand considerably under lower pressure or higher temperatures, drastically reducing their density. The calculator assumes standard conditions or the density value provided at specific conditions.
  3. Phase of the Material: Density varies greatly between the solid, liquid, and gaseous states of the same substance. Water, for instance, is less dense as ice (solid) than as liquid water. Ensure the density value corresponds to the correct phase.
  4. Porosity and Inclusions: Materials with internal voids (porosity) or embedded foreign particles will have a lower bulk density than their theoretical solid density. For example, porous concrete weighs less than solid concrete of the same volume. The calculator uses the bulk density provided.
  5. Measurement Accuracy: The accuracy of the final weight calculation is directly dependent on the precision of the input density and volume measurements. Errors in measuring dimensions or using inaccurate density values will propagate into the final weight result.
  6. Unit Conversion Precision: While the calculator handles conversions, the precision of the underlying conversion factors matters. Using standard, precise conversion factors ensures minimal loss of accuracy during normalization. Ensure you've selected the correct input units.
  7. Gravitational Field Variations: Technically, weight is a force dependent on gravity (Weight = Mass × gravitational acceleration). While this calculator outputs mass (commonly referred to as weight), if you were calculating the actual force of weight in Newtons, variations in local gravity (e.g., at different altitudes or latitudes) would affect the outcome. However, for most practical purposes involving material quantities, this effect is negligible.

Frequently Asked Questions (FAQ)

What is the difference between mass and weight?

Mass is a measure of the amount of matter in an object, and it's constant regardless of location. Weight, on the other hand, is the force of gravity acting on that mass. Weight can change depending on the gravitational pull (e.g., you weigh less on the Moon). However, in everyday language and for most practical calculations like this one, "weight" is used interchangeably with mass, typically measured in kilograms or pounds. This calculator determines the mass of the material.

Can this calculator handle mixed units (e.g., density in g/m³ and volume in cm³)?

Yes, the calculator is designed to handle different units for density and volume. You simply select the appropriate unit for each input (density unit and volume unit), and the calculator will perform the necessary conversions internally to kg/m³ and m³ before calculating the true weight.

What if I don't know the exact density of my material?

If you don't know the exact density, you can try to find typical density values for common materials in engineering handbooks or online databases. For specific alloys or custom materials, it's best to consult the material's specification sheet or perform a density test. Using an estimated density will result in an estimated weight. Check our resources for material property data.

How accurate are the results?

The accuracy of the results depends entirely on the accuracy of the input data (density and volume) and the precision of the unit conversions used by the calculator. Assuming accurate inputs and standard conversion factors, the calculated weight will be precise according to the formula.

Does temperature affect the calculation?

Yes, temperature can affect the density of materials, especially liquids and gases. If your material's density is highly sensitive to temperature, ensure you are using a density value that corresponds to the temperature at which you are measuring the volume and estimating the weight. For most solid materials under typical conditions, the effect is minimal.

What is 'Normalized Density'?

'Normalized Density' refers to the density value after it has been converted to a standard, consistent unit for calculation purposes. In this calculator, the standard unit for density is kilograms per cubic meter (kg/m³). This ensures that calculations are performed accurately, regardless of the original unit provided.

Can this calculate the weight of irregularly shaped objects?

Yes, as long as you can determine the object's volume. If an object has an irregular shape, its volume can often be found using methods like water displacement. Once you have the volume and know the material's density, the calculator will work.

What if I need the weight in a different unit, like grams or tons?

This calculator primarily outputs weight in kilograms and may show pounds. If you need other units (grams, metric tons, short tons), you would typically perform a final conversion from the calculated kilograms. For example, to convert kg to grams, multiply by 1000; to convert kg to metric tons, divide by 1000.

© 2023 Your Company Name. All rights reserved.

var chartInstance = null; function getConversionFactors() { var densityFactors = { 'kg/m^3': 1, 'g/cm^3': 1000, 'lb/ft^3': 16.0185, 'lb/in^3': 27679.9 }; var volumeFactors = { 'm^3': 1, 'cm^3': 0.000001, // 1 cm³ = 1e-6 m³ 'ft^3': 0.0283168, // 1 ft³ = 0.0283168 m³ 'in^3': 0.0000163871 // 1 in³ = 1.63871e-5 m³ }; return { density: densityFactors, volume: volumeFactors }; } function validateInput(inputId, errorId, minValue, maxValue) { var input = document.getElementById(inputId); var errorElement = document.getElementById(errorId); var value = parseFloat(input.value); errorElement.style.display = 'none'; // Hide error initially input.style.borderColor = '#ced4da'; // Reset border color if (input.value.trim() === "") { errorElement.innerText = "This field cannot be empty."; errorElement.style.display = 'block'; input.style.borderColor = '#dc3545'; return false; } if (isNaN(value)) { errorElement.innerText = "Please enter a valid number."; errorElement.style.display = 'block'; input.style.borderColor = '#dc3545'; return false; } if (minValue !== undefined && value < minValue) { errorElement.innerText = "Value cannot be negative."; errorElement.style.display = 'block'; input.style.borderColor = '#dc3545'; return false; } // Note: No specific maxValue defined for density/volume here as they are highly variable. // If ranges were critical, they'd be added. return true; } function calculateWeight() { var validDensity = validateInput('materialDensity', 'materialDensityError', 0); var validVolume = validateInput('volume', 'volumeError', 0); if (!validDensity || !validVolume) { return; // Stop calculation if validation fails } var density = parseFloat(document.getElementById('materialDensity').value); var volume = parseFloat(document.getElementById('volume').value); var densityUnit = document.getElementById('materialUnit').value; var volumeUnit = document.getElementById('volumeUnit').value; var factors = getConversionFactors(); var densityFactor = factors.density[densityUnit]; var volumeFactor = factors.volume[volumeUnit]; var normalizedDensity = density * densityFactor; // in kg/m³ var normalizedVolume = volume * volumeFactor; // in m³ var trueWeightKg = normalizedDensity * normalizedVolume; // in kg var trueWeightLb = trueWeightKg * 2.20462; // Convert kg to lb // Display intermediate results document.getElementById('normalizedDensityResult').innerText = normalizedDensity.toFixed(4); document.getElementById('normalizedVolumeResult').innerText = normalizedVolume.toFixed(6); document.getElementById('volumeConversionFactorResult').innerText = volumeFactor.toFixed(6); // Showing the factor used for volume // Display primary result (using kg as primary, showing lb as well) document.getElementById('trueWeightResult').innerText = trueWeightKg.toFixed(4); document.getElementById('trueWeightUnit').innerText = "kg"; // Explicitly state kg // Add lb to display if needed, or adjust primary result display // For simplicity, sticking to primary kg result as requested. // If lb is desired as primary, swap the logic or add another primary result area. document.getElementById('resultsContainer').style.display = 'block'; updateChart(normalizedDensity, volume); // Pass original volume for chart context } function resetCalculator() { document.getElementById('materialDensity').value = ''; document.getElementById('volume').value = ''; document.getElementById('materialUnit').value = 'g/cm^3'; // Sensible default document.getElementById('volumeUnit').value = 'cm^3'; // Sensible default document.getElementById('materialDensityError').innerText = ''; document.getElementById('volumeError').innerText = ''; document.getElementById('materialDensity').style.borderColor = '#ced4da'; document.getElementById('volume').style.borderColor = '#ced4da'; document.getElementById('trueWeightResult').innerText = '–'; document.getElementById('trueWeightUnit').innerText = '–'; document.getElementById('normalizedDensityResult').innerText = '–'; document.getElementById('normalizedVolumeResult').innerText = '–'; document.getElementById('volumeConversionFactorResult').innerText = '–'; document.getElementById('resultsContainer').style.display = 'none'; if (chartInstance) { chartInstance.destroy(); chartInstance = null; } // Re-render a placeholder or empty chart drawChart([], []); } function copyResults() { var resultText = "Density Volume True Weight Calculation Results:\n\n"; resultText += "Primary Result:\n"; resultText += " True Weight: " + document.getElementById('trueWeightResult').innerText + " " + document.getElementById('trueWeightUnit').innerText + "\n\n"; resultText += "Intermediate Values:\n"; resultText += " Normalized Density: " + document.getElementById('normalizedDensityResult').innerText + " kg/m³\n"; resultText += " Normalized Volume: " + document.getElementById('normalizedVolumeResult').innerText + " m³\n"; resultText += " Volume Conversion Factor: " + document.getElementById('volumeConversionFactorResult').innerText + "\n\n"; resultText += "Key Assumptions:\n"; resultText += " Density Unit: " + document.getElementById('materialUnit').value + "\n"; resultText += " Volume Unit: " + document.getElementById('volumeUnit').value + "\n"; var textArea = document.createElement("textarea"); textArea.value = resultText; document.body.appendChild(textArea); textArea.select(); try { var successful = document.execCommand('copy'); // Optionally provide user feedback here console.log('Copying results was ' + (successful ? 'successful' : 'unsuccessful')); } catch (err) { console.error('Unable to copy results', err); } document.body.removeChild(textArea); } function drawChart(volumes, weights) { var ctx = document.getElementById('weightChart').getContext('2d'); if (chartInstance) { chartInstance.destroy(); } chartInstance = new Chart(ctx, { type: 'line', data: { labels: volumes, // Volume in m³ datasets: [{ label: 'Weight (kg)', data: weights, // Weight in kg borderColor: '#004a99', backgroundColor: 'rgba(0, 74, 153, 0.2)', fill: true, tension: 0.1 }] }, options: { responsive: true, maintainAspectRatio: false, scales: { x: { title: { display: true, text: 'Volume (m³)' } }, y: { title: { display: true, text: 'Weight (kg)' }, beginAtZero: true } }, plugins: { tooltip: { callbacks: { label: function(context) { var label = context.dataset.label || ''; if (label) { label += ': '; } if (context.parsed.y !== null) { label += context.parsed.y.toFixed(2); } return label; } } } } } }); } function updateChart(densityForChart, originalVolumeInput) { var chartVolumes = []; var chartWeights = []; var baseVolume = parseFloat(originalVolumeInput); // Use the original input volume as a base if (isNaN(baseVolume) || baseVolume <= 0) baseVolume = 1; // Default if input is invalid // Generate data points around the base volume var densityInKgM3 = densityForChart; // Use the normalized density from calculation for (var i = 0; i < 5; i++) { var factor = i * 0.5; // Generate 5 points, scaled var currentVolumeM3 = baseVolume * (1 + factor); // Increase volume var currentWeightKg = densityInKgM3 * currentVolumeM3; chartVolumes.push(currentVolumeM3.toFixed(3)); chartWeights.push(currentWeightKg.toFixed(2)); } // Add a point slightly less than base volume for better range var smallerVolumeM3 = baseVolume * 0.75; var smallerWeightKg = densityInKgM3 * smallerVolumeM3; chartVolumes.unshift(smallerVolumeM3.toFixed(3)); chartWeights.unshift(smallerWeightKg.toFixed(2)); drawChart(chartVolumes, chartWeights); } // Initial chart draw on page load document.addEventListener('DOMContentLoaded', function() { drawChart([], []); // Draw empty chart initially }); // FAQ Toggle Function function toggleFaq(element) { var faqItem = element.closest('.faq-item'); faqItem.classList.toggle('active'); var content = faqItem.querySelector('.faq-content'); if (content.style.display === "block") { content.style.display = "none"; } else { content.style.display = "block"; } }

Leave a Comment