Home Web Front-end Front-end Q&A How to build a website using html

How to build a website using html

May 06, 2023 pm 01:17 PM

HTML is the basis for website development. It can realize the basic components, layout, style and interaction of web pages. It is an essential tool for website construction. This article will explain how to use HTML to build a website from aspects such as how to write HTML code, commonly used HTML tags, HTML document structure and publishing websites.

1. Writing HTML code

HTML code is composed of various tags, and the structure and content of the web page are defined through these tags. The following is a basic HTML document structure.



1

2

<meta charset="UTF-8">

<title>我的网站</title>

Copy after login


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

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

323

324

325

326

327

328

329

330

331

332

333

334

335

336

337

338

339

340

341

342

343

344

345

346

347

348

349

350

351

352

353

354

355

356

357

358

359

360

361

362

363

364

365

366

367

368

369

370

371

372

373

374

375

376

377

378

379

380

381

382

383

384

385

386

387

388

389

390

391

392

393

394

395

396

397

398

399

400

401

402

403

404

405

406

407

408

409

410

411

412

413

414

415

416

417

418

419

420

421

422

423

424

425

426

427

428

429

430

431

432

433

434

435

436

437

438

439

440

441

442

443

444

445

446

447

448

449

450

451

452

453

454

455

456

457

458

459

460

461

462

463

464

465

466

467

468

469

470

471

472

473

474

475

476

477

478

479

480

481

482

483

484

485

486

487

488

489

490

491

492

493

494

495

496

497

498

499

500

501

502

503

504

505

506

507

508

509

510

511

512

513

514

515

516

517

518

519

520

521

522

523

524

525

526

527

528

529

530

531

532

533

534

535

536

537

538

539

540

541

542

543

544

545

546

547

548

549

550

551

552

553

554

555

556

557

558

559

560

561

562

563

564

565

566

567

568

569

570

571

572

573

574

575

576

577

578

579

580

581

582

583

584

585

586

587

588

589

590

591

592

593

594

595

596

597

598

599

600

601

602

603

604

605

606

607

608

609

610

611

612

613

614

615

616

617

618

619

620

621

622

623

624

625

626

627

628

629

630

631

632

633

634

635

636

637

638

639

640

641

642

643

644

645

646

647

648

649

650

651

652

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

<h1>欢迎来到我的网站</h1>

<p>这是我的第一个网页</p><p></p>

<p><br></p>

<p>Among them,  is a document type declaration, telling the browser that this is an HTML5 document;< ;html> is the root element of the HTML document, used to contain the content of the entire document;  is the head of the document, used to contain some metadata, such as character set, web page title, etc.;  is the document's The body, used to contain the actual content of the web page. </p>

<p>When writing HTML code, you need to pay attention to the following points: </p>

<p>1. HTML tags are not case-sensitive, but it is recommended to use lowercase letters. </p>

<p>2. Tags can be extended with attributes, such as <a href="http://www.baidu.com">Baidu</a>, where the href attribute is used to define the target address of the link. </p>

<p>3. Tags can be nested, such as </p><p><strong>bold text</strong></p>, where the <strong> tag is used to define bold text. </strong><p></p>

<p>2. Commonly used HTML tags</p>

<p>The following are some commonly used HTML tags, which can be used to define text, images, links, tables and other elements of web pages. </p>

<p>1. Text tags </p>

<p></p><h1>~</h1><h6>: Define the title, h1 is the largest and h6 is the smallest. <p></p>

<p></p><p>: Define paragraph. </p>

<p><strong>: Define bold text. </strong></p>

<p><em>: Define emphasized text. </em></p>

<p><a>: Define the link. </a></p>

<p>2. Picture tag</p>

<p><img src="/static/images/load.jpg">: Define the image. </p>

<p>3. List tag</p>

<p></p><ul>: Define an unordered list. <p></p>

<p></p><ol>: Define an ordered list. <p></p>

<p></p><li>: Define each list item. <p></p>

<p>4. Table tag</p>

: Define the table.

 

: Define rows in the table.

 

<table><tbody><tr><td>: Define cells in the table.

 

5. Form tags

 

<form>: Define the form.

 

<input>: Define the input box.

 

<select> and <option>: Define drop-down lists.

 

: Define button.

 

The above tags are only part of the HTML tags. For more tags, please refer to the HTML document.

 

3. HTML document structure

 

HTML document structure refers to the arrangement and function of each part in an HTML page. A reasonable structure can make the page more standardized and easier to maintain and manage. Below is a typical HTML document structure.

 

 

 

 

     

    My Site

     

    <script src="script.js"></script>

 

 

     

        My Site

         

             

                Homepage

                News

                Blog

                Contact us

             

         

     

     

         

            News

             

                Xi Jinping sent a congratulatory letter to the new President of Cameroon and the new Prime Minister (full text)

                On August 6, President Xi Jinping met at the Great Hall of the People in Beijing with President Biya of Cameroon and President Touadera of the Central African Republic, who were in China to attend the Beijing Summit of the Forum on China-Africa Cooperation. Xi Jinping delivered a congratulatory letter to Biya from Xi Jinping, General Secretary of the CPC Central Committee, President of the State, and Chairman of the Central Military Commission. Xi Jinping emphasized that President Xi selected me as a special envoy to attend the presidential inauguration ceremony in Cameroon, which is a true reflection of the brotherhood between the two peoples, the importance and support for the China-Cameroon comprehensive strategic cooperative partnership, and a positive contribution to strengthening China-Africa unity and cooperation. Promote. On behalf of China, I would like to express warm congratulations to Mr. Biya on his election as the President of Cameroon. I wish Cameroon to achieve new development as a country and nation under the leadership of Mr. Biya. I would also like to extend my best wishes to China.

             

         

         

            Blog Ranking

             

                Getting started with HTML

                CSS Advanced

                JavaScript Basics

             

         

     

     

        Contact us: contact@mysite.com

     

 

 

 

Among them, ,  and  represent the header, body and tail respectively;  is used to separate different parts of the body;  represents the sidebar;  and <script> tags are used to reference external style sheets and script files.

 

4. Publishing website

 

After creating the HTML page, you need to publish it to the Internet for users to access. Generally speaking, we need to purchase a domain name and a virtual host, and then upload the web page files to the virtual host.

 

Virtual hosts generally provide FTP upload tools. We can use FTP tools to upload website files to the virtual host. Once the upload is complete, we can access the website through the browser. If you want to build a website more professionally, you can use some CMS systems, such as WordPress, Joomla, etc.

 

Summarize

 

HTML is the basic technology for website development. Mastering the basic syntax, common tags and document structure of HTML can provide a good foundation for website development. However, it should be noted that HTML is a static technology. To realize the functions and interactions of the website, it must be combined with other technologies such as CSS and JavaScript.</td>

</tr>

</table><p>The above is the detailed content of How to build a website using html. For more information, please follow other related articles on the PHP Chinese website!</p>

 

 

                        </div>

                    </div>

                    <div class="wzconShengming_sp">

                        <div class="bzsmdiv_sp">Statement of this Website</div>

                        <div>The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn</div>

                    </div>

                </div>

 

                <ins class="adsbygoogle"

     style="display:block"

     data-ad-format="autorelaxed"

     data-ad-client="ca-pub-5902227090019525"

     data-ad-slot="2507867629"></ins>

<script>

     (adsbygoogle = window.adsbygoogle || []).push({});

</script>

 

 

                 

 

 

                 

    <script>

        (adsbygoogle = window.adsbygoogle || []).push({});

    </script>

 

 

                    <!-- <div class="phpgenera_Details_mainR4">

                        <div class="phpmain1_4R_readrank">

                            <div class="phpmain1_4R_readrank_top">

                                <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'"

                                    onerror="this.onerror=''; this.src='/static/imghw/default1.png'"

                                    src="/static/imghw/hotarticle2.png" alt="" />

                                <h2>Hot Article</h2>

                            </div>

                            <div class="phpgenera_Details_mainR4_bottom">

                                                            <div class="phpgenera_Details_mainR4_bottoms">

                                    <a href="https://www.php.cn/faq/1796785841.html" title="Assassin's Creed Shadows: Seashell Riddle Solution" class="phpgenera_Details_mainR4_bottom_title">Assassin's Creed Shadows: Seashell Riddle Solution</a>

                                    <div class="phpgenera_Details_mainR4_bottoms_info">

                                        <span>4 weeks ago</span>

                                        <span>By DDD</span>

                                    </div>

                                </div>

                                                            <div class="phpgenera_Details_mainR4_bottoms">

                                    <a href="https://www.php.cn/faq/1796789525.html" title="What's New in Windows 11 KB5054979 & How to Fix Update Issues" class="phpgenera_Details_mainR4_bottom_title">What's New in Windows 11 KB5054979 & How to Fix Update Issues</a>

                                    <div class="phpgenera_Details_mainR4_bottoms_info">

                                        <span>3 weeks ago</span>

                                        <span>By DDD</span>

                                    </div>

                                </div>

                                                            <div class="phpgenera_Details_mainR4_bottoms">

                                    <a href="https://www.php.cn/faq/1796785857.html" title="Where to find the Crane Control Keycard in Atomfall" class="phpgenera_Details_mainR4_bottom_title">Where to find the Crane Control Keycard in Atomfall</a>

                                    <div class="phpgenera_Details_mainR4_bottoms_info">

                                        <span>4 weeks ago</span>

                                        <span>By DDD</span>

                                    </div>

                                </div>

                                                            <div class="phpgenera_Details_mainR4_bottoms">

                                    <a href="https://www.php.cn/faq/1796784440.html" title="Roblox: Dead Rails - How To Complete Every Challenge" class="phpgenera_Details_mainR4_bottom_title">Roblox: Dead Rails - How To Complete Every Challenge</a>

                                    <div class="phpgenera_Details_mainR4_bottoms_info">

                                        <span>1 months ago</span>

                                        <span>By DDD</span>

                                    </div>

                                </div>

                                                            <div class="phpgenera_Details_mainR4_bottoms">

                                    <a href="https://www.php.cn/faq/1796793874.html" title="How to fix KB5055523 fails to install in Windows 11?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5055523 fails to install in Windows 11?</a>

                                    <div class="phpgenera_Details_mainR4_bottoms_info">

                                        <span>2 weeks ago</span>

                                        <span>By DDD</span>

                                    </div>

                                </div>

                                                        </div>

                            <div class="phpgenera_Details_mainR3_more">

                                <a href="https://www.php.cn/article.html">Show More</a>

                            </div>

                        </div>

                    </div> -->

 

 

                                             

                             

                                 

                                     

                                    Hot AI Tools

                                 

                                 

                                                                         

                                             

                                                 

                                             

                                             

                                                 

                                                    Undresser.AI Undress

                                                 

                                                AI-powered app for creating realistic nude photos

                                             

                                         

                                                                         

                                             

                                                 

                                             

                                             

                                                 

                                                    AI Clothes Remover

                                                 

                                                Online AI tool for removing clothes from photos.

                                             

                                         

                                                                         

                                             

                                                 

                                             

                                             

                                                 

                                                    Undress AI Tool

                                                 

                                                Undress images for free

                                             

                                         

                                                                         

                                             

                                                 

                                             

                                             

                                                 

                                                    Clothoff.io

                                                 

                                                AI clothes remover

                                             

                                         

                                                                         

                                             

                                                 

                                             

                                             

                                                 

                                                    Video Face Swap

                                                 

                                                Swap faces in any video effortlessly with our completely free AI face swap tool!

                                             

                                         

                                                                 

                                 

                                    Show More

                                 

                             

                         

                     

 

                    <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script>

 

                     

                         

                             

                                 

                                Hot Article

                             

                             

                                                             

                                    Assassin's Creed Shadows: Seashell Riddle Solution

                                     

                                        4 weeks ago

                                        By DDD

                                     

                                 

                                                             

                                    What's New in Windows 11 KB5054979 & How to Fix Update Issues

                                     

                                        3 weeks ago

                                        By DDD

                                     

                                 

                                                             

                                    Where to find the Crane Control Keycard in Atomfall

                                     

                                        4 weeks ago

                                        By DDD

                                     

                                 

                                                             

                                    Roblox: Dead Rails - How To Complete Every Challenge

                                     

                                        1 months ago

                                        By DDD

                                     

                                 

                                                             

                                    How to fix KB5055523 fails to install in Windows 11?

                                     

                                        2 weeks ago

                                        By DDD

                                     

                                 

                                                         

                             

                                Show More

                             

                         

                     

 

 

                                             

                             

                                 

                                     

                                    Hot Tools

                                 

                                 

                                                                         

                                             

                                                 

                                             

                                             

                                                 

                                                    Notepad++7.3.1

                                                 

                                                Easy-to-use and free code editor

                                             

                                         

                                                                             

                                             

                                                 

                                             

                                             

                                                 

                                                    SublimeText3 Chinese version

                                                 

                                                Chinese version, very easy to use

                                             

                                         

                                                                             

                                             

                                                 

                                             

                                             

                                                 

                                                    Zend Studio 13.0.1

                                                 

                                                Powerful PHP integrated development environment

                                             

                                         

                                                                             

                                             

                                                 

                                             

                                             

                                                 

                                                    Dreamweaver CS6

                                                 

                                                Visual web development tools

                                             

                                         

                                                                             

                                             

                                                 

                                             

                                             

                                                 

                                                    SublimeText3 Mac version

                                                 

                                                God-level code editing software (SublimeText3)

                                             

                                         

                                                                     

                                 

                                    Show More

                                 

                             

                         

                                         

 

                     

                     

                         

                             

                                 

                                Hot Topics

                             

                             

                                                             

                                    Where is the login entrance for gmail email?

                                     

                                         

                                             

                                            7722

                                         

                                         

                                             

                                            15

                                         

                                     

                                 

                                                             

                                    Java Tutorial

                                     

                                         

                                             

                                            1642

                                         

                                         

                                             

                                            14

                                         

                                     

                                 

                                                             

                                    CakePHP Tutorial

                                     

                                         

                                             

                                            1396

                                         

                                         

                                             

                                            52

                                         

                                     

                                 

                                                             

                                    Laravel Tutorial

                                     

                                         

                                             

                                            1289

                                         

                                         

                                             

                                            25

                                         

                                     

                                 

                                                             

                                    PHP Tutorial

                                     

                                         

                                             

                                            1233

                                         

                                         

                                             

                                            29

                                         

                                     

                                 

                                                         

                             

                                Show More

                             

                         

                     

                 

             

                             

                     

                         

                            Related knowledge

                         

                         

 

                                                     

                                 

                                     

                                 

                                React's Role in HTML: Enhancing User Experience

                                Apr 09, 2025 am  12:11 AM

                                React combines JSX and HTML to improve user experience. 1) JSX embeds HTML to make development more intuitive. 2) The virtual DOM mechanism optimizes performance and reduces DOM operations. 3) Component-based management UI to improve maintainability. 4) State management and event processing enhance interactivity.

                             

                                                         

                                 

                                     

                                 

                                React and the Frontend: Building Interactive Experiences

                                Apr 11, 2025 am  12:02 AM

                                React is the preferred tool for building interactive front-end experiences. 1) React simplifies UI development through componentization and virtual DOM. 2) Components are divided into function components and class components. Function components are simpler and class components provide more life cycle methods. 3) The working principle of React relies on virtual DOM and reconciliation algorithm to improve performance. 4) State management uses useState or this.state, and life cycle methods such as componentDidMount are used for specific logic. 5) Basic usage includes creating components and managing state, and advanced usage involves custom hooks and performance optimization. 6) Common errors include improper status updates and performance issues, debugging skills include using ReactDevTools and Excellent

                             

                                                         

                                 

                                     

                                 

                                React Components: Creating Reusable Elements in HTML

                                Apr 08, 2025 pm  05:53 PM

                                React components can be defined by functions or classes, encapsulating UI logic and accepting input data through props. 1) Define components: Use functions or classes to return React elements. 2) Rendering component: React calls render method or executes function component. 3) Multiplexing components: pass data through props to build a complex UI. The lifecycle approach of components allows logic to be executed at different stages, improving development efficiency and code maintainability.

                             

                                                         

                                 

                                     

                                 

                                React and the Frontend Stack: The Tools and Technologies

                                Apr 10, 2025 am  09:34 AM

                                React is a JavaScript library for building user interfaces, with its core components and state management. 1) Simplify UI development through componentization and state management. 2) The working principle includes reconciliation and rendering, and optimization can be implemented through React.memo and useMemo. 3) The basic usage is to create and render components, and the advanced usage includes using Hooks and ContextAPI. 4) Common errors such as improper status update, you can use ReactDevTools to debug. 5) Performance optimization includes using React.memo, virtualization lists and CodeSplitting, and keeping code readable and maintainable is best practice.

                             

                                                         

                                 

                                     

                                 

                                What are the benefits of using TypeScript with React?

                                Mar 27, 2025 pm  05:43 PM

                                TypeScript enhances React development by providing type safety, improving code quality, and offering better IDE support, thus reducing errors and improving maintainability.

                             

                                                         

                                 

                                     

                                 

                                How can you use useReducer for complex state management?

                                Mar 26, 2025 pm  06:29 PM

                                The article explains using useReducer for complex state management in React, detailing its benefits over useState and how to integrate it with useEffect for side effects.

                             

                                                         

                                 

                                     

                                 

                                React's Ecosystem: Libraries, Tools, and Best Practices

                                Apr 18, 2025 am  12:23 AM

                                The React ecosystem includes state management libraries (such as Redux), routing libraries (such as ReactRouter), UI component libraries (such as Material-UI), testing tools (such as Jest), and building tools (such as Webpack). These tools work together to help developers develop and maintain applications efficiently, improve code quality and development efficiency.

                             

                                                         

                                 

                                     

                                 

                                React vs. Backend Frameworks: A Comparison

                                Apr 13, 2025 am  12:06 AM

                                React is a front-end framework for building user interfaces; a back-end framework is used to build server-side applications. React provides componentized and efficient UI updates, and the backend framework provides a complete backend service solution. When choosing a technology stack, project requirements, team skills, and scalability should be considered.

                             

                                                     

 

                                                     

                                See all articles

                                 

                             

                                             

                 

                     

     

     

     

         

             

            Public welfare online PHP training,Help PHP learners grow quickly!

         

         

            About us

            Disclaimer

            Sitemap

         

         

             

                © php.cn All rights reserved

             

         

     

 

 

</option></select><input type="hidden" id="verifycode" value="/captcha.html">

<script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script>

 

<script src="/static/js/common_new.js"></script>

<script type="text/javascript" src="/static/js/jquery.cookie.js?1745623910"></script>

        <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script>

    <link rel="stylesheet" id="_main-css" href="/static/css/viewer.min.css?2" type="text/css" media="all">

    <script type="text/javascript" src="/static/js/viewer.min.js?1"></script>

    <script type="text/javascript" src="/static/js/jquery-viewer.min.js"></script>

    <script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script>

     

    <script>

        var _paq = window._paq = window._paq || [];

        /* tracker methods like "setCustomDimension" should be called before "trackPageView" */

        _paq.push(['trackPageView']);

        _paq.push(['enableLinkTracking']);

        (function () {

            var u = "https://tongji.php.cn/";

            _paq.push(['setTrackerUrl', u + 'matomo.php']);

            _paq.push(['setSiteId', '9']);

            var d = document,

                g = d.createElement('script'),

                s = d.getElementsByTagName('script')[0];

            g.async = true;

            g.src = u + 'matomo.js';

            s.parentNode.insertBefore(g, s);

        })();

    </script>

 

     

    <script>

        // top

        layui.use(function () {

            var util = layui.util;

            util.fixbar({

                on: {

                    mouseenter: function (type) {

                        layer.tips(type, this, {

                            tips: 4,

                            fixed: true,

                        });

                    },

                    mouseleave: function (type) {

                        layer.closeAll("tips");

                    },

                },

            });

        });

 

        document.addEventListener("DOMContentLoaded", (event) => {

            // 定义一个函数来处理滚动链接的点击事件

            function setupScrollLink(scrollLinkId, targetElementId) {

                const scrollLink = document.getElementById(scrollLinkId);

                const targetElement = document.getElementById(targetElementId);

 

                if (scrollLink && targetElement) {

                    scrollLink.addEventListener("click", (e) => {

                        e.preventDefault(); // 阻止默认链接行为

                        targetElement.scrollIntoView({

                            behavior: "smooth"

                        }); // 平滑滚动到目标元素

                    });

                } else {

                    console.warn(

                        `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.`

                        );

                }

            }

 

            // 使用该函数设置多个滚动链接

            setupScrollLink("Article_Details_main1L2s_1", "article_main_title1");

            setupScrollLink("Article_Details_main1L2s_2", "article_main_title2");

            setupScrollLink("Article_Details_main1L2s_3", "article_main_title3");

            setupScrollLink("Article_Details_main1L2s_4", "article_main_title4");

            setupScrollLink("Article_Details_main1L2s_5", "article_main_title5");

            setupScrollLink("Article_Details_main1L2s_6", "article_main_title6");

            // 可以继续添加更多的滚动链接设置

        });

 

 

        window.addEventListener("scroll", function () {

            var fixedElement = document.getElementById("Article_Details_main1Lmain");

            var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器

            var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度

            var scrollHeight = document.documentElement.scrollHeight; // 页面总高度

 

            // 计算距离底部的距离

            var distanceToBottom = scrollHeight - scrollTop - clientHeight;

 

            // 当距离底部小于或等于300px时,取消固定定位

            if (distanceToBottom <= 980) {

                fixedElement.classList.remove("Article_Details_main1Lmain");

                fixedElement.classList.add("Article_Details_main1Lmain_relative");

            } else {

                // 否则,保持固定定位

                fixedElement.classList.remove("Article_Details_main1Lmain_relative");

                fixedElement.classList.add("Article_Details_main1Lmain");

            }

        });

 

     

    </script>

 

 

<script>

    document.addEventListener('DOMContentLoaded', function() {

  const mainNav = document.querySelector('.Article_Details_main1Lmain');

  const header = document.querySelector('header');

  if (mainNav) {

    window.addEventListener('scroll', function() {

      const scrollPosition = window.scrollY;

      if (scrollPosition > 84) {

        mainNav.classList.add('fixed');

      } else {

        mainNav.classList.remove('fixed');

      }

    });

  }

});

</script>

 

 

 

</form></td></tr></tbody></table></li></ol></ul></h6>