Basic of website
Always on website :
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Title</title>
</head>
<body>
</body>
</html>
If you have CSS it will come before head and java on body
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Your Title</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<h1>Task Timeline</h1>
<p id="date"></p>
<ul>
<li class="list">Edit the head</li>
<li class="list">Edit the body</li>
<li>Link to JavaScript</li>
</ul>
<script src="app.js"></script> <noscript>You need to enable JavaScript to view the full site.</noscript>
</body>
</html>
Add anything in the body for add-in page
Button with href
<form>
<input type="button" onclick="window.location.href='https://explinux.com';" value="explinux" />
</form>
Button href open in new tab
<form action="https://www.w3docs.com/" method="get" target="_blank">
<button type="submit">Click me</button>
Add href in an in any text
<a href="url">link text</a>
Open in new tab URL
<a href="https://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
Use image as a link
<a href="default.asp">
<img src="smiley.gif" alt="HTML tutorial" style="width:42px;height:42px;">
</a>
<img src="smiley.gif" alt="HTML tutorial" style="width:42px;height:42px;">
</a>
Send mail href
<a href="mailto:someone@example.com">Send email</a>
Title href or hyperlink
<a href="https://www.w3schools.com/html/" title="Go to W3Schools HTML section">Visit our HTML Tutorial</a>
Comments
Post a Comment