How to Write a Webpage

The most basic part of creating a web page is using HTML, Hyper Text Markup Language. Html elements are represented by different tags, that contain the greater and less than symbols.

Basics

A few examples are "heading", "paragraph", and "title." The very first line of your text should be <!DOCTYPE >. It defines that the document is written in HTML5.
Right after that should be <html >, and then <head>. The headings can vary in size into <h1>, <h2>, and more. It also contains meta information about the document.
There is a <title> element that is basically the title of the web page.
Lastly, there is <p>, which defines a paragraph.
These are all examples of nested html elements. They all have a start tag and an end tag: <h1> and </h1>.


Attributes

All HTML elements can have attributes. They provide additional information about an element. There is a lang, title, size, alt and a href attribute.
The language, lang attribute, is included in the <html>. The title attribute is added to the <p> element. The value of the title attribute will be displayed as a tooltip when you hover over the paragraph. HTML links are defined with the <a> tag. The link address is specified in the href attribute. HTML images are defined with the <img> tag. The filename of the source, and the size are all provided as attributes. The alt attribute specifies an alternative text to be used, when an image cannot be displayed.

In your website, you can include different quotations and citations.The HTML <q> element defines a short quotation. Abbreviations can also be shown through <abbr>.


Style

You can also add different styles to make your webpage more creative. You can do this by using the style attribute. It is in the format of <tagname style="property:value;" >. The property and value are CSS.
One example is the different background colors. You can do <body style="background-color:powderblue;">. Text color can also be altered <h1 style="color:red;">.
Another property is the fonts, <p style="font-family:verdana;">, and font size <h1 style="font-size:300%;" >.
The last property would the the text-align, <h1 style="text-align:center;">.

HTML also has elements that define and format the text differently.

<b> is bold text.
<strong > is important text.
<i > is italic text.
<em> is emphasized text.
<mark> is marked text.
<small> is small text.
<del> is deleted text.
<ins> is inserted text.
<!sub> is subscript text.
<sup> is superscript text.


Computercode is another option that can customize your page. It includes <kbd>, <samp>, and <code>. The HTML <kbd> element defines keyboard input. The HTML The HTML <samp> element defines sample output from a computer program. <code> elements defines a piece of code.


You can visit w3schools for more help!