You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
2 years ago
|
<!DOCTYPE html>
|
||
|
<!-- document language -->
|
||
|
<html lang="en-US">
|
||
|
<head>
|
||
|
|
||
|
<!-- character encoding set -->
|
||
|
<meta charset="utf-8">
|
||
|
|
||
|
<title>Welcome my HTML!</title>
|
||
|
|
||
|
<!-- Metadata -->
|
||
|
<meta name="Name" content="My name">
|
||
|
<meta name="Description" content="This is a description of this page. It can be useful to write a description if you want to take SEO (search engine optimization) into account.">
|
||
|
|
||
|
<!-- here is an example of how to link to a stylesheet -->
|
||
|
<link rel='stylesheet' href='CSS/my-style.css'/>
|
||
|
|
||
|
<!-- here is an example of how to link to a script -->
|
||
|
<script src="JS/script.js"></script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<!-- Content goes here -->
|
||
|
|
||
|
<header>
|
||
|
<h1 id="title">Javascript meets the DOM</h1>
|
||
|
</header>
|
||
|
|
||
|
<p>This a sentence!</p>
|
||
|
|
||
|
<p id="empty"></p>
|
||
|
|
||
|
|
||
|
<!-- Image -->
|
||
|
|
||
|
<img src="https://upload.wikimedia.org/wikipedia/commons/4/45/Wikipedia20_animated_Wikipedia_Globe_1MB.gif" width="20%" alt="Animated image of Planet Earth, source Wikimedia">
|
||
|
|
||
|
|
||
|
<!-- Scripts -->
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
alert('Hello, world!')
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|