GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — replace double quotes · firmanJS/fullstack-javascript@dcc4489

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • chapter1
    • chapter1.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chapter1/chapter1.md‎

Copy file name to clipboardExpand all lines: chapter1/chapter1.md
+17-17Lines changed: 17 additions & 17 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,17 @@ In this example, each line is an HTML element:
121121
```html
122122
<h2>Overview of HTML</h2>
123123
<div>HTML is a …</div>
124-
<link rel=“stylesheet” type=“text/css” href=“style.css” />
124+
<link rel="stylesheet" type="text/css" href="style.css" />
125125
```
126126

127127
An HTML document itself is an element of the &lt;html&gt; tag, and all
128128
other elements are children of that &lt;html&gt; tag:
129129

130130
```html
131131
<!DOCTYPE html>
132-
<html lang=“en”>
132+
<html lang="en">
133133
<head>
134-
<link rel=“stylesheet” type=“text/css” href=“style.css”/>
134+
<link rel="stylesheet" type="text/css" href="style.css"/>
135135
</head>
136136
<body>
137137
<h2>Overview of HTML</h2>
@@ -157,7 +157,7 @@ The class attribute defines a class that is used for styling in CSS or
157157
Domain Object Model (DOM) manipulation; for example:
158158

159159
```html
160-
<p class=“normal”>…</p>
160+
<p class="normal">…</p>
161161
```
162162

163163
### `id`
@@ -174,7 +174,7 @@ class, but it has to be unique; for example:
174174
The style attribute defines inline CSS to style an element; for example:
175175

176176
```html
177-
<font style=“font-size:20px”>…</font>
177+
<font style="font-size:20px">…</font>
178178
```
179179

180180
### `title`
@@ -183,7 +183,7 @@ The title attribute specifies additional information that is usually
183183
presented in tooltips by most browsers; for example:
184184

185185
```html
186-
<a title=“Up-vote the answer”>…</a>
186+
<a title="Up-vote the answer">…</a>
187187
```
188188

189189
### `data-name`
@@ -192,7 +192,7 @@ The data-name attribute allows for metadata to be stored in the DOM; for
192192
example:
193193

194194
```html
195-
<tr data-token=“fa10a70c–21ca–4e73-aaf5-d889c7263a0e”>…</tr>
195+
<tr data-token="fa10a70c–21ca–4e73-aaf5-d889c7263a0e">…</tr>
196196
```
197197

198198
### `onclick`
@@ -201,8 +201,8 @@ The onclick attribute calls inline JavaScript code when a click event
201201
happens; for example:
202202

203203
```html
204-
<input type=“button”
205-
onclick=“validateForm();”>…</a>
204+
<input type="button"
205+
onclick="validateForm();">…</a>
206206
```
207207

208208
### `onmouseover`
@@ -211,8 +211,8 @@ The onmouseover attribute is similar to onclick but for mouse hover
211211
events; for example:
212212

213213
```html
214-
<a onmouseover=“javascript:
215-
this.setAttribute(‘css’,‘color:red’)”>
214+
<a onmouseover="javascript:
215+
this.setAttribute(‘css’,‘color:red’)">
216216
…
217217
</a>
218218
```
@@ -271,7 +271,7 @@ it can have CSS code directly inside of a `<style>` tag:
271271
Each HTML element can have id attributes, class attributes, or both:
272272

273273
```html
274-
<div id=“main” class=“large”>
274+
<div id="main" class="large">
275275
Lorem ipsum dolor sit amet,
276276
Duis sit amet neque eu.
277277
</div>
@@ -321,7 +321,7 @@ This sets the width to 150 pixels for input which the name attribute is
321321
email:
322322

323323
```css
324-
input[name=“email”] {
324+
input[name="email"] {
325325
width: 150px;
326326
}
327327
```
@@ -359,8 +359,8 @@ Let's start with JavaScript in HTML. Putting JS code into a
359359
document:
360360

361361
```html
362-
<script type=“text/javascript” language=“javascript”>
363-
alert(“Hello world!”) //simple alert dialog window
362+
<script type="text/javascript" language="javascript">
363+
alert("Hello world!") //simple alert dialog window
364364
</script>
365365
```
366366

@@ -370,8 +370,8 @@ by setting source attribute `src="filename.js"` on a `<script/>` tag, for
370370
example, for the app.js resource:
371371

372372
```html
373-
<script src=“js/app.js” type=“text/javascript”
374-
language=“javascript”>
373+
<script src="js/app.js" type="text/javascript"
374+
language="javascript">
375375
</script>
376376
```
377377

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.