banner



How to Create a Login Page in Html Using Cookies Updated FREE

How to Create a Login Page in Html Using Cookies

Download Article

Download Article

Curious virtually making your first website? Creating a simple webpage in a text editor with a header, title, and text volition exist piece of cake one time yous acquire a few basic HTML tags. This wikiHow tutorial will teach you how to prepare an HTML folio with structural tags, text, images, and links. We'll fifty-fifty help you lot add some color to your webpage using CSS (Cascading Style Sheets).

  1. 1

    Open a text editor. On a computer running the Windows operating system, you'll usually utilise Notepad, or Notepad++ whereas macOS users will utilise TextEdit and ChromeOS users will employ Text:

    • Windows - Open up Start , type in notepad, or notepad++ and click Notepad or "Notepad++ or sublime" at the top of the window.
    • macOS - Click Spotlight , type in textedit, and double-click TextEdit at the height of the results.
    • ChromeOS - Open launcher, so click Text. (The icon says Code Pad).
  2. 2

    Type in <!DOCTYPE html> and press Enter . This tells the web browser that this is an HTML certificate.[1]

    Advertisement

  3. three

    Blazon <html> and press Enter . This opening tag for your HTML lawmaking.

  4. 4

    Type in <caput> and press Enter . This is the tag that opens your HTML head. The HTML head information that is not usually displayed on your spider web page. This information tin can include, the title, meta data, CSS style sheets, and other scripting languages. [two]

  5. five

    Type in <championship>. This is the tag to add a title to your page.

  6. 6

    Type a championship for your spider web page. This tin be any title you want to name your web page.

  7. vii

    Blazon in </title> and press Enter . This is the tag to close your championship tag.

  8. 8

    Type </caput> and press Enter . This is the tag to close your head. Your HTML lawmaking should look something like this.

                                                <!DOCTYPE html>                      <                      html                      >                      <                      head                      >                      <                      title                      >My Spider web Page</                      title                      >                      </                      head                      >                    

    Advertisement

  1. 1

    Type in <body> beneath the airtight "Head" tag. This tag opens the body of your HTML certificate. Everything that goes in the HTML body displays on the web folio.

  2. 2

    Blazon in <h1>. 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.

  3. 3

    Type a heading for your folio. This can be the title of your folio or a greeting.

  4. four

    Type </h1> afterwards your heading text and press Enter . This tag closes your heading.

    • Add additional headings as you become. There are six unlike headings that you lot can create by using the <h1></h1> through <h6></h6> tags. These create headings of different sizes. For instance, to create iii different-sized headings in succession, you might write the following:
                                                          <                          h1                          >Welcome to My Page!</                          h1                          >                          <                          h2                          >My name is Bob.</                          h2                          >                          <                          h3                          >I promise you like it here.</                          h3                          >                        
    • The headings shows the priority or importance of the text. Simply its not necessary to employ a higher heading if you want to use whatsoever lower heading. One tin directly use H3, even if there is no H1 in your post.
  5. 5

    Blazon <p>. This is the tag to open up a paragraph. Paragraph text is used to display normal sized text.

  6. 6

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

  7. vii

    Type </p> after your text and printing Enter . This the tag to close your paragraph text. The following is an instance of paragraph text in HTML:

                                                <                      p                      >This is my paragraph.</                      p                      >                    
    • You can add multiple paragraph lines in a row in social club to create a serial of paragraphs under one heading.
    • You lot tin can modify the colour of any text by framing the text with the <font color="color"> and </font> tags. Make sure to blazon your preferred color into the "colour" section (yous'll proceed the quotes). You tin can turn any text (due east.g., headers) into a dissimilar color with this set of tags. For example, to turn a paragraph's text blue, you would write the following code: <p><font color="blue">Whales are majestic creatures.</font></p>
    • You can add bolds, italics and other text formats using HTML. The post-obit are examples of how you can format text using HTML tags:[3]
                                                          <                          b                          >Bold text</                          b                          >                          <                          i                          >Italic text</                          i                          >                          <                          u                          >Underlined text</                          u                          >                          <                          sub                          >Subscript text</                          sub                          >                          <                          sup                          >Superscript text</                          sup                          >                        
    • If y'all use bold and italic text for emphasis, not merely for styling, use the <stiff> and <em> elements instead of <b> and <i>. This makes your web page easier to understand when using technologies similar a screen reader[4] or the reader mode provided in some browsers[5] .

    Advertizing

  1. i

    Add a picture to your folio. You can add together an epitome to your HTML using the following steps:

    • Type <img src= to open up your image tag.
    • Copy and paste the image URL after the "=" sign in quotation marks.
    • Type > after the prototype url to close your paradigm tag. For case, if the epitome's URL is "http://www.mypicture.com/lake", you would write the following:
                                                          <                          img                          src                          =                          "http://www.mypicture.com/lake.jpg"                          >                        
  2. 2

    Link to another page. Y'all can add together a link to your HTML using the post-obit steps:

    • Type <a href= to open your link tag.
    • Copy and paste URL after the "=" sign in quotation marks.
    • Type > after the URL to close the link portion of the HTML.
    • Blazon a name for the link after the closing subclass.
    • Type </a> afterwards the link proper noun to close the HTML link.[6] The following is an example of a link to Facebook.
                                                          <                          a                          href                          =                          "https://www.facebook.com"                          >Facebook</                          a                          >.                        
  3. 3

    Add a line pause to your HTML. Y'all can add together a line suspension past typing <br> to your HTML. This creates a horizontal line that tin can be used to divide unlike sections of your page.

    Advertisement

  1. ane

    Check out the listing of official HTML colour names and codes. The World Wide Spider web Consortium (W3C) manages an official list of colors that you'll find at https://www.w3.org/wiki/CSS/Properties/colour/keywords. Each color has an official proper noun, 6-digit hexadecimal lawmaking, and a decimal value. You tin can utilise any of these values to add colour to elements of your webpage. For this example, we'll use the official colour names.

  2. 2

    Gear up the groundwork color in the <body> tag. You'll be doing this by adding the mode attribute to the tag. Let'south say you lot wanted to brand the background color of the entire page lavender:

    • <trunk style="background-color:lavender;">
  3. 3

    Fix the text color for whatsoever tag. You can also use the style attribute to specify which color you'd similar all text within a particular tag to be. For example, let'southward say you wanted to make the text in i of your <p> tags midnightblue:

    • <p style="color:midnightblue;">
    • The color modify will only touch the text within that <p> tag. If you kickoff some other <p> tag later that should also be midnightblue, you'll need to prepare the way attribute in that location besides.
  4. 4

    Set the groundwork color for a header or paragraph. Similar to how you set up the background color for the trunk tag, you can too set background colors for other tags. Let's say y'all wanted to make the background color of an <p> lightgrey, and the groundwork colour of an H1-fashion header lightskyblue, you'd use:

    • <p style="background-color:lightgrey;">
    • <h1 style="background-color:lightskyblue;">

    Advert

  1. 1

    Type </body> to close your body. After you have finished adding all your text, images and other elements to the body of your HTML document, add together this tag at the bottom of your HTML document to close the body of your HTML document.

  2. ii

    Type </html> to close your HTML document. This tag goes below the tag to close your HTML body at the end of your HTML document. This tells the web browser there is no more HTML code after this tag. Your unabridged HTML document should look something similar this:

                                                <!DOCTYPE html>                      <                      html                      >                      <                      head                      >                      <                      title                      >wikiHow Fan Page</                      title                      >                      </                      head                      >                      <                      body                      >                      <                      h1                      >Welcome to My Page!</                      h1                      >                      <                      p                      >This is a fan page for wikiHow. Make yourself at home!</                      p                      >                      <                      h2                      >Important Dates</                      h2                      >                      <                      p                      ><                      i                      >January 15, 2019</                      i                      >                      - wikiHow's Altogether</                      p                      >                      <                      h2                      >Links</                      h2                      >                      <                      p                      >Here is a link to wikiHow:                      <                      a                      href                      =                      "http://www.wikihow.com"                      >wikiHow</                      a                      ></                      p                      >                      </                      body                      >                      </                      html                      >                    

    Advertisement

  1. 1

    Convert your document to plain text (Mac users simply). Click the Format bill of fare item at the top of the screen, so click Make Plain Text in the resulting driblet-down carte.

    • This footstep is neither necessary nor possible on Windows.
  2. ii

    Click File . It'south in the card bar at the top of the screen.

  3. iii

    Click Save as . Information technology's in the drop-down menu below "File".

    • Alternatively, you can press Ctrl+Southward (Windows) or Command+S (Mac) to do so.
  4. 4

    Enter a proper name for your HTML certificate. Blazon whatever you want to name your document into the "File name" (Windows) or "Proper name" (Mac) text box.

  5. 5

    Change the document's file type. You'll demand to change the document from a text file to an HTML file. Utilise the following steps to change the file type:

    • Windows - Click the "Relieve as type" drib-downwardly box, click All Files, and then type .html at the end of the file's proper noun.
    • MacOS - Replace the .txt at the stop of the file'due south name with .html instead.
    • ChromeOS - Click the "Save every bit" push. Proper name the file with .html at the finish. The beginning is up to you.
  6. 6

    Click Save . It's at the lesser of the window. Doing and so volition create an HTML file.

    • HTML files typically open with your default web browser.
  7. vii

    Close your text editor. At this point, y'all're ready to open your HTML file in your browser so that you tin view your web page.

  8. eight

    Open up the HTML document with your browser. In most cases, yous'll be able to double-click the HTML document to practise this. If double-clicking the document results in an fault, do the following:

    • Windows - Right-click the document, select Open with, and click your preferred browser.
    • Mac - Click the document in one case, click File, select Open With, and click your preferred browser.
  9. ix

    Edit the HTML document if needed. You may find an error in your HTML folio. To change information technology, yous tin edit the HTML document's text:

    • On Windows, yous can correct-click the document and click Edit in the resulting drop-down carte (if you have Notepad++ installed, this will say Edit with Notepad++ instead).
    • On Mac, you'll want to click the certificate to select information technology, click File, select Open With, and click TextEdit. You can besides elevate the document into TextEdit.
    • On Chromebook, close the Text app, open Files, find your file, so click on it.

    Advertisement

Sample HTML

Add New Question

  • Question

    How practice I upload my webpage and make information technology public?

    Community Answer

    Yous can prepare your own server, merely I recommend ownership web hosting from some of the bachelor hosting companies. There are also gratuitous hosts out there, merely they would put their ads on your webpage.

  • Question

    Tin can I create a spider web page using Notepad?

    Community Answer

    Yes. Write the code and so press edit-salve and then phone call it what ever you want. After y'all chosen it something, you have to blazon .html at he cease. Salvage and utilise as needed.

  • Question

    Can I create an interactive blueprint of a website using only HTML?

    Community Answer

    Yeah, yous can put some pictures on there and a background as well.

  • Question

    How exactly exercise I get the HTML information on a tab?

    Community Answer

    Subsequently y'all modify the file type to .html and open information technology, It should automatically turn into a tab.

  • Question

    Tin I test the furnishings of a web page without the net?

    Community Answer

    Aye, you can edit every bit well as run into your doctor on the browser without any network.

  • Question

    Is there an app available to guide me in creating a web page?

    Community Answer

    In that location'south the mobile app "Learn HTML," besides as "Learn CSS" and "Acquire JavaScript," all from Sololearn. Combine them all to create a nice HTML webpage. If y'all aren't looking for mobile apps but for websites, you lot tin can go to codecademy.com, or simply search in Google for websites that volition teach yous programming languages.

  • Question

    How do I change the font size?

    Community Answer

    Use CSS. CSS is used to determine how an HTML document looks. To insert CSS into an HTML certificate, type ". ". To change the font size in CSS, type the tag you desire to edit (p, h1, trunk etc) followed by a {. Later on the {, type: font-size: ...px; (the semicolon is very important!) then add a } at the stop.

  • Question

    How do I pick an image from my computer instead of online?

    Community Answer

    Provide the verbal path. For case, if your image is chosen confront.jpg, blazon "C:\\Users\(your username)\Desktop\face.jpg."

  • Question

    How tin I save a file on Notepad that volition give me a webpage view?

    Community Answer

    You can save information technology by pressing cntrl+s. After you've name the file, save it every bit .html.

  • Question

    How do I link one HTML page with another HTML page?

    Community Answer

    Y'all can create a link from one page to another using the "" tag. This tag has an important parameter "href", which contains the accost.

Testify more answers

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertising

  • Tags should always exist closed in a mirror paradigm of their open counterparts. For example, <tag1><tag2> should be closed as </tag2></tag1>.

  • You can add side-scrolling text to your website using the <marquee></marquee> tag, but proceed in heed that this tag might not be recognized by some browsers.

  • If you want to center an paradigm in your page, you tin type <class="middle"> afterwards the paradigm's name in the img tag (for example, <img src="URL" course="center">).

Advertising

  • Information technology's best to host your ain images on Imgur or similar if y'all plan on uploading images to your web folio. Posting other people's pictures may event in copyright infringement.

Advertizement

About This Article

Article Summary 10

ane. Open a text editor.
2. Type ″<!DOCTYPE html>″ on the beginning line.
iii. Type ″<html>″ on the next line.
4. Type ″<head>″ on the next line.
5. Blazon your folio'due south title between ″<title>″ and ″</title>″ tags.
six. Type ″</caput>″ on the adjacent line.
7. Type ″<body>″ on the next line.
8. Enter the content of your page.
ix. End the page with ″</body></html>″

Did this summary assist yous?

Thanks to all authors for creating a page that has been read 4,264,093 times.

Is this commodity up to date?

How to Create a Login Page in Html Using Cookies

DOWNLOAD HERE

Source: https://www.wikihow.com/Create-a-Simple-Web-Page-with-HTML

Posted by: elvirainfichice82.blogspot.com

Related Posts

There is no other posts in this category.
Subscribe Our Newsletter
close