Non-Semantic tags
Advantages of Non-semantic Tags
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Non-Semantic Example</title>
<style>
body{ background: #ce04e9; }
.header_container { background-color: lightblue; padding: 10px; }
.content_conainer { background-color: lightgray; padding: 10px; }
.footer_conainer { background-color: lightgreen; padding: 10px; }
</style>
</head>
<body>
<div class="header_container">
<h1>My Website</h1>
</div>
<div class="content_conainer">
<p>Welcome to my website. This is a simple example of using non-semantic tags.</p>
</div>
<div class="footer_conainer">
<p>© 2024 My RAYS CODING</p>
</div>
</body>
</html>
Disadvantages of Non-semantic Tags
Some Non-Semantic Tags
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Non-Semantic Example</title>
<style>
body{ background: #ce04e9; }
.header_container { background-color: lightblue; padding: 10px; }
</style>
</head>
<body>
<div class="header_container">
<h1>My Website</h1>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Non-Semantic Example</title>
</head>
<body>
<p>This is a <span class="highlight">highlighted</span> word in a sentence.</p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Non-Semantic Example</title>
</head>
<body>
<p>This is <b>bold</b> text.</p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Non-Semantic Example</title>
</head>
<body>
<p>This is <i>italicized</i> text.</p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Non-Semantic Example</title>
</head>
<body>
<p><font face="Arial" size="3" color="red">This is styled text.</font></p>
</body>
</html>