--- title: "Make a Simple Webpage" draft: true --- We now have a webpage that\'s actually on the real-live internet! You\'ve already made it! Now the only issue is putting what you want on your website. In this little series, we\'ll overview the basics of HTML and CSS, the two important languages that will allow you to make a stylish multi-page website. We will start with HTML. ## HTML HTML is the **h**yper**t**ext **m**arkup **l**anguage. It is the \"language\" that all webpages are written in so that all browsers can read and display them properly. A markup language is *not* the same as a programming language: Programming languages specify orders for a computer, while markup languages are ways of specifying the styling of text. Markup languages are necessary because computers run on mere text, not colors, sizes, headers and other styling things. Let\'s understand what HTML is. In [a previous article](/basic/nginx), we put this text in your website\'s `index.html`. ### Paragraphs Note how this HTML file appears as a webpage: +-----------------------------------+-----------------------------------+ | |  | |
This is my web | | | site. Thanks for stopping by!
| | | | | |Now my website is live!
| | | Here is some more text. | | | There are | | | no paragraph tags on this stuff. | | | So it | | | will all appear as one paragraph. | | | | | | Despite being on multiple lines. | | | | | | | | | Even this! | | +-----------------------------------+-----------------------------------+ This will seem strange at first, but this is the use of HTML as a markup language: it allows you to style your document with tags and write it in whatever way is convenient. Let\'s learn more about what HTML can do. ### Headings In addition to paragraphs (``), we can specify headings with inside `
` tags. Heading tags are for your page\'s title and section headings in the document: - `` -- Main and largest headings - `` -- Subheadings (smaller) - `` -- Sub-subheadings (yet smaller) - `` -- Etc., etc. +-----------------------------------+-----------------------------------+ |Here is some paragraph text.
| | | | | | | | |And here is some more...
| | | | | | < | | | h2>This is a subheading (h2) | | | | | |And another paragraph.
| | | | | |Etc. etc...
| | +-----------------------------------+-----------------------------------+ #### A preview to CSS It is very important to use headings like this for your pages. Notice that on this website, headings come in different colors, text-alignment and sizes for emphasis. If we use these heading tags, when we clear CSS, we can easily style all `This is bold text.
| text](pix/html2-01.png) | | | | | < | | | p>This is italic text. | | | | | | | | |This is underlined.
| | | | | |T | |
| his is struck through.