-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvalidator.html
More file actions
190 lines (157 loc) · 8.61 KB
/
Copy pathvalidator.html
File metadata and controls
190 lines (157 loc) · 8.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- css -->
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/tools/validator.css">
<!-- Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400&family=Source+Sans+3:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet">
<title>DevLab - HTML, CSS and JavaScript Validators</title>
<!-- Meta Description: Accurately reflects the content of each page -->
<meta name="description"
content="Unlock the potential of DevLab, your comprehensive web development environment. Enjoy features like an integrated code editor, live preview, API documentation, and a suite of tools for seamless coding. Any developer can leverage our tools, and if the desired tool isn't available, contribute to add it! Join our community, contribute, and shape the ultimate web development toolkit.">
<link rel="canonical" href="https://devlab.nhussein.io" />
<!-- Favicon -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/logo/DevLab.png">
<link rel="icon" type="image/png" sizes="16x16" href="./assets/logo/DevLab.png">
<!-- CSS -->
<!-- js -->
<script src="./assets/js/core/dark-mode.js" defer></script>
<script src="./assets/js/tools/validator.js" defer></script>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400&family=Source+Sans+3:wght@200;300;400;500;600;700&display=swap"
rel="stylesheet">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://devlab.nhussein.io">
<meta property="og:title" content="DevLab - Web Development Environment">
<meta property="og:description"
content="Explore the features and functionalities of DevLab, a web development environment that enhances your coding experience.">
<meta property="og:image" content="./assets/logo/DevLab.png">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://devlab.nhussein.io">
<meta name="twitter:title" content="DevLab - Web Development Environment">
<meta name="twitter:description"
content="Explore the features and functionalities of DevLab, a web development environment that enhances your coding experience.">
<meta name="twitter:image" content="./assets/logo/DevLab.png">
<!-- Additional tags for SEO (if needed) -->
<!-- Meta Keywords (Optional): Skip or use sparingly -->
<meta name="keywords"
content="web development, coding, coding environment, DevLab, developer tools, code editor, live preview, code snippets, version control integration, API documentation viewer, linting, error checking, responsive design testing, performance analysis, debugging tools, HTML-to-JSX converter, validators, color picker, character encoding, CSS grid generator, flexbox generator, code minifiers, code beautifiers, performance testing, resume creator, portfolio conversion, linktree creation">
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="logo">
<a href="index.html">
<img src="./assets/logo/DevLab.png" height="100px" alt="DevLab">
</a>
</div>
<div>
<ul class="nav-links">
<li><a class="nav-link" href="./index.html">DevLab</a></li>
<li><a href="./Doc.html" class="nav-link">Doc</a></li>
<!-- <li><a class="nav-link" href="index.html">Tools</a></li> -->
<li><a href="index.html#contribute" class="nav-link">Contribute</a></li>
</ul>
</div>
<!-- Dark and Light theme -->
<div class="dark-light-mode-theme">
<label class="switch">
<span class="sun"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g fill="#ffd43b">
<circle r="5" cy="12" cx="12"></circle>
<path
d="m21 13h-1a1 1 0 0 1 0-2h1a1 1 0 0 1 0 2zm-17 0h-1a1 1 0 0 1 0-2h1a1 1 0 0 1 0 2zm13.66-5.66a1 1 0 0 1 -.66-.29 1 1 0 0 1 0-1.41l.71-.71a1 1 0 1 1 1.41 1.41l-.71.71a1 1 0 0 1 -.75.29zm-12.02 12.02a1 1 0 0 1 -.71-.29 1 1 0 0 1 0-1.41l.71-.66a1 1 0 0 1 1.41 1.41l-.71.71a1 1 0 0 1 -.7.24zm6.36-14.36a1 1 0 0 1 -1-1v-1a1 1 0 0 1 2 0v1a1 1 0 0 1 -1 1zm0 17a1 1 0 0 1 -1-1v-1a1 1 0 0 1 2 0v1a1 1 0 0 1 -1 1zm-5.66-14.66a1 1 0 0 1 -.7-.29l-.71-.71a1 1 0 0 1 1.41-1.41l.71.71a1 1 0 0 1 0 1.41 1 1 0 0 1 -.71.29zm12.02 12.02a1 1 0 0 1 -.7-.29l-.66-.71a1 1 0 0 1 1.36-1.36l.71.71a1 1 0 0 1 0 1.41 1 1 0 0 1 -.71.24z">
</path>
</g>
</svg></span>
<span class="moon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">
<path
d="m223.5 32c-123.5 0-223.5 100.3-223.5 224s100 224 223.5 224c60.6 0 115.5-24.2 155.8-63.4 5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6-96.9 0-175.5-78.8-175.5-176 0-65.8 36-123.1 89.3-153.3 6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z">
</path>
</svg></span>
<input id="dark-mode-toggle" type="checkbox" class="input">
<span class="slider"></span>
</label>
</div>
</nav>
<!-- Section Title -->
<div class="section-title">
<span class="line-span"></span>
<span class="tool-title"> DevLab HTML, CSS and JavaScript Validators</span>
<span class="line-span"></span>
</div>
<!-- Validators Section -->
<section id="validators">
<div class="validator-container">
<h2>Code Validators</h2>
<p>Validate your HTML, CSS, and JavaScript code</p>
<div class="validator-tabs">
<button onclick="showValidator('html')" class="tab-btn active">HTML</button>
<button onclick="showValidator('css')" class="tab-btn">CSS</button>
<button onclick="showValidator('js')" class="tab-btn">JavaScript</button>
</div>
<div id="html-validator" class="validator-content active">
<textarea id="htmlCode" placeholder="Enter your HTML code here..."><!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html></textarea>
<button onclick="validateHTML()" class="validate-btn">Validate HTML</button>
</div>
<div id="css-validator" class="validator-content">
<textarea id="cssCode" placeholder="Enter your CSS code here...">body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
h1 {
color: blue;
}</textarea>
<button onclick="validateCSS()" class="validate-btn">Validate CSS</button>
</div>
<div id="js-validator" class="validator-content">
<textarea id="jsCode" placeholder="Enter your JavaScript code here...">function hello() {
console.log('Hello World!');
}
hello();</textarea>
<button onclick="validateJS()" class="validate-btn">Validate JavaScript</button>
</div>
<div id="validationResults" class="results-container">
<!-- Validation results will appear here -->
</div>
</div>
</section>
<!-- footer -->
<footer>
<div class="footer-upper">
<div class="footer-logo">
<a href="#hero"><img class="footer-logo"
src="./assets/logo/DevLab.png"
height="100px" alt="DevLab"></a>
</div>
</div>
<div class="made-by">
</div>
<p style="color: aliceblue; margin: 0;">
Developed with passion by
<a href="https://nhussein.io" style="font-weight: bold; color: aliceblue;" target="_blank"
rel="noopener noreferrer">Nhussein</a>
</p>
</footer>
</body>
</html>