How to turn on html

How to Create a Simple Web Page with HTML

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 4,545,177 times.

This wikiHow teaches you how to write a simple web page with HTML (hypertext markup language). HTML is one of the core components of the World Wide Web, making up the structure of web pages. Once you’ve created your web page, you can save it as an HTML document and view it in your web browser. Creating an HTML page is possible using basic text editors found on both Windows and Mac computers.

Adding a Head to Your HTML

Image titled 4082 1 2

Windows Start

Mac Spotlight

Image titled 4082 2 2

Type in and press ↵ Enter . This tells the web browser that this is an HTML document. [1] X Research source

Image titled 4082 3 2

Image titled 4082 4 2

Type in and press ↵ Enter . This is the tag that opens your HTML head. The HTML head information that is not usually displayed on your web page. This information can include, the title, meta data, CSS style sheets, and other scripting languages. [2] X Research source

Image titled 4082 5 2

Image titled 4082 6 2

Image titled 4082 7 2

Image titled 4082 8 2

Type and press ↵ Enter . This is the tag to close your head. Your HTML code should look something like this.

 html> head> title>My Web Pagetitle> head> 

Adding a Body and Text to Your HTML

Image titled 4082 9 2

Type in below the closed «Head» tag. This tag opens the body of your HTML document. Everything that goes in the HTML body displays on the web page.

Image titled 4082 10 2

Type in . This is the tag to add a heading to your HTML document. A Heading is large bold text that typically goes at the top of your HTML document.

Image titled 4082 11 2

Image titled 4082 12 2

    Add additional headings as you go. There are six different headings that you can create by using the through tags. These create headings of different sizes. For example, to create three different-sized headings in succession, you might write the following:
h1>Welcome to My Page!h1> h2>My name is Bob.h2> h3>I hope you like it here.h3> 

Image titled 4082 13 2

Type

. This is the tag to open a paragraph. Paragraph text is used to display normal sized text.

Image titled 4082 14 2

Type some text. This can be a description for your web page or any other information you wish to share.

Image titled 4082 15 2

Type

after your text and press ↵ Enter . This the tag to close your paragraph text. The following is an example of paragraph text in HTML:

  • You can add multiple paragraph lines in a row in order to create a series of paragraphs under one heading.
  • You can change the color of any text by framing the text with the and tags. Make sure to type your preferred color into the «color» section (you’ll keep the quotes). You can turn any text (e.g., headers) into a different color with this set of tags. For example, to turn a paragraph’s text blue, you would write the following code:

    Whales are majestic creatures.

  • You can add bolds, italics and other text formats using HTML. The following are examples of how you can format text using HTML tags: [3] X Research source
b>Bold textb> i>Italic texti> u>Underlined textu> sub>Subscript textsub> sup>Superscript textsup> 

Источник

CodingWithKhan

In this blog, we will learn how to turn on or off light bulbs using HTML and javascript. It’s very easy to do. In the above demo, you can see what’s we are going to do.

Turn on-off bulb

1) Take OFF bulb picture

off bulb picture

2) Take ON bulb picture

3) Create Turn ON and Turn OFF buttons

4) Add logic to buttons

Following function «light» will display turn ON image if value 1 pass to it and dispaly turn OFF picture when value 0 pass to it.

  
     button   

Источник

How to Run a HTML File

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 24 people, some anonymous, worked to edit and improve it over time.

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 585,479 times.

HTML (Hypertext Markup Language) is a web-based scripting language. It is mainly used to structure the look and function of websites. Any file containing HTML code is saved using the extension «.HTML». All modern browsers — such as Google Chrome, Safari and Mozilla Firefox — recognize this format and can open these files, so all you need to do to run an HTML file is open it in your Web browser of choice.

Saving an HTML File

Image titled Run a HTML File Step 1

Understand HTML. HTML stands for Hypertext Markup Language. HTML files are text files which represent the content and the layout of a web page. To read an HTML file, you can use any text editor (e.g notepad, notepad++, or any specialized HTML editor). However, if you want to see what the program looks like, you need to run it on a web browser, which is designed to read and render HTML files.

Image titled Run a HTML File Step 2

Write or copy HTML into a basic text editor. As you become a more proficient coder, you can use HTML editing programs like Adobe Dreamweaver, Microsoft Expression Web, CoffeeCup, and Visual Studio Code, but a simple program is all you need to start. Notepad (Windows) or TextEdit (Mac) should suffice.

Image titled Run a HTML File Step 3

Save the file as your-file.html. If you make an HTML file in Notepad, TextEdit, or any other text editor, be sure to save it with the proper notation. Before saving the file, make sure that you have changed your «Save as type» to «All files» (if needed) and click «Save».

Running an HTML File

Image titled Run a HTML File Step 4

Make sure that there is a browser installed on your computer. To run a HTML file on your computer you must have a browser.

Image titled Run a HTML File Step 5

  • HTML files usually are in a folder with the same name as the .html file but without the .html extension. Inside of the folder may be different files such as .js .css , images and other files. Do not worry about those, they are necessary files for the layout and functionality of the page. It is necessary not to delete these files. Leave them in the same directory (folder) as your html file, otherwise the page won’t display properly. If you would like to modify an html file, you will need to learn coding in html and other scripting languages

Image titled Run a HTML File Step 6

  • Most computers will associate your default browser with the .html file extension. That means that normally, you don’t need to find a browser to open the file—you can just double-click on it, and the computer will open it in your default web browser.
  • If your computer doesn’t recognize the file, Windows will ask whether to open this file using an already installed application, or search for the extension on the internet. Select the «open using already installed applications» option. You will be able to choose from a list of all browsers installed on the system.

Image titled Run a HTML File Step 7

View your HTML file in your chosen browser. The browser automatically interprets your coding and displays it. The location of the file will be displayed in the address bar—this will help you confirm that the HTML file has been opened, and not any other.

Image titled Run a HTML File Step 8

Alternate method: Run your browser, then press Ctrl-O. This should pull up an «Open» menu. Find your file, double-click it, and watch your program open up in a browser tab. Different browsers may have different «Open» hotkeys, so check your browser settings.

Running an HTML File for a Website

Image titled Run a HTML File Step 9

Open your preferred FTP platform. If your host has one built in, stick with that—it will make it a lot simpler. If not, use a third-party FTP host like FileZilla.

Image titled Run a HTML File Step 10

Next, connect to your remote server (your website’s server). If you’re using the built-in platform, you don’t need to worry about this. You’ll see two boxes on the left and two boxes on the right. Don’t worry about the left or top right ones; all you need to focus on is the bottom right box.

Image titled Run a HTML File Step 11

Image titled Run a HTML File Step 12

Wait until the file is uploaded. Then, if you’ve removed the default page, go and view your website to see your HTML file! If you see a directory listing, click the .html file to view.

Community Q&A

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

First, save the program on your desktop with an extension «.html,» then right click on the file document and click on open with Chrome.

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

Источник

How to turn HTML on

Go down

Post

by Shamsky April 15th 2008, 6:21 pm

Hi, me and some friends got an issue here with this. We can’t get it to work at all, anyone know how you turn HTML on?

avatar

Shamsky New Member

Posts : 1
Reputation : 0
Language : English

Back to top Go down

Re: How to turn HTML on

Post

by Luky April 15th 2008, 7:29 pm

Go to admin panel=>Users & Groups=>Users=>User settings and look for this option «Allow HTML» and choose Yes then click the Save button.Also make sure you set HTML on from Profile=>Preferences tab(in your nav bar) and look for this option «Always allow HTML :» and choose Yes then click the Save button.

Male

Luky Ener getic

Posts : 6106
Reputation : 263
Language : Romanian, English
Location : Bucharest, Romania

Источник

Читайте также:  How to do javascript programming
Оцените статью