monaco-editor/website/index/samples/sample.html.txt

101 lines
1.9 KiB
Plaintext
Raw Normal View History

2016-06-10 01:25:58 +08:00
<!DOCTYPE HTML>
2019-03-22 03:30:52 +08:00
<!--Example of comments in HTML-->
2016-06-10 01:25:58 +08:00
<html>
<head>
2019-03-22 03:30:52 +08:00
<!--This is the head section-->
2016-06-10 01:25:58 +08:00
<title>HTML Sample</title>
2019-03-22 03:30:52 +08:00
<meta charset="utf-8">
<!--This is the style tag to set style on elements-->
2016-06-10 01:25:58 +08:00
<style type="text/css">
2019-03-22 03:30:52 +08:00
h1
{
font-family: Tahoma;
font-size: 40px;
font-weight: normal;
margin: 50px;
color: #a0a0a0;
2016-06-10 01:25:58 +08:00
}
2019-03-22 03:30:52 +08:00
h2
{
font-family: Tahoma;
font-size: 30px;
font-weight: normal;
margin: 50px;
color: #fff;
}
p
{
font-family: Tahoma;
font-size: 17px;
font-weight: normal;
margin: 0px 200px;
color: #fff;
}
div.Center
{
text-align: center;
}
div.Blue
{
padding: 50px;
background-color: #7bd2ff;
}
button.Gray
{
font-family: Tahoma;
font-size: 17px;
font-weight: normal;
margin-top: 100px;
padding: 10px 50px;
background-color: #727272;
color: #fff;
outline: 0;
2019-03-22 13:49:58 +08:00
border: none;
cursor: pointer;
2019-03-22 03:30:52 +08:00
}
button.Gray:hover
{
background-color: #898888;
}
button.Gray:active
{
background-color: #636161;
}
2016-06-10 01:25:58 +08:00
</style>
2019-03-22 03:30:52 +08:00
<!--This is the script tag-->
2016-06-10 01:25:58 +08:00
<script type="text/javascript">
2019-03-22 03:30:52 +08:00
function ButtonClick(){
// Example of comments in JavaScript
window.alert("I'm an alert sample!");
}
2016-06-10 01:25:58 +08:00
</script>
</head>
<body>
2019-03-22 03:30:52 +08:00
<!--This is the body section-->
<div class="Center">
<h1>NAME OF SITE</h1>
</div>
<div class="Center Blue">
<h2>I'm h2 Header! Edit me in &lt;h2&gt;</h2>
<p>
2020-02-14 00:07:01 +08:00
I'm a paragraph! Edit me in &lt;p&gt;
to add your own content and make changes to the style and font.
It's easy! Just change the text between &lt;p&gt; ... &lt;/p&gt; and change the style in &lt;style&gt;.
You can make it as long as you wish. The browser will automatically wrap the lines to accommodate the
2019-03-22 03:30:52 +08:00
size of the browser window.
</p>
<button class="Gray" onclick="ButtonClick()">Click Me!</button>
</div>
2016-06-10 01:25:58 +08:00
</body>
2019-03-22 13:49:58 +08:00
</html>