Hypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications.
Learning HTML is not easy, that is why many Bloggers prefer using WordPress, Blogger and other top platforms, they simply want to skip the stress on which they will go through when building their site from scratch.
Below are some simple but useful html codes you can quickly memorize and use when it is needed..
Bold – <b>text here</b>
Italic – <i>text here</i>
Underline – <u>text here</u>
Document head – <head> ….. </head>
Paragraph – <p>text here</p>
Strong text – <strong> …. </strong>
Heading – <h1> <h6>
Defines an html document – <html>
Defines the document body – <body>
Source file – (src)
Delete – <del>
Blink – <blink>text here</blink>
Moving text – <marquee>text here</marquee>
Insert – <ins>
Note: all opened tags are closed with this </>
Subscript – <sub>
Superscript – <sup>
<!DOCTYPE html> <html> <head> <title>This is a title</title> </head> <body> <p>Hello world!</p> </body> </html>
Header of the HTML document: <head>…</head>. The title is included in the head, for example:
Headings: HTML headings are defined with the <h1> to <h6> tags:
<h1>Heading level 1</h1>
<h2>Heading level 2</h2>
<h3>Heading level 3</h3>
<h4>Heading level 4</h4>
<h5>Heading level 5</h5>
<h6>Heading level 6</h6>
<p>Paragraph 1</p> <p>Paragraph 2</p>
This is a link in HTML. To create a link the <a> tag is used. The href= attribute holds the URL address of the link.
<a href=”https://www.gurusblend.com/”>A link to Stay Informed!</a>
Line breaks:<br>. The difference between <br> and <p> is that “br” breaks a line without altering the semantic structure of the page, whereas “p” sections the page into paragraphs. Note also that “br” is an empty element in that, although it may have attributes, it can take no content and it may not have an end tag.
<p>This <br> is a paragraph <br> with <br> line breaks</p>
<!– This is a comment –>
The abbreviation element, abbr, can be used to demonstrate some of these attributes :
<abbr id=”anId” class=”jargon” style=”color:purple;” title=”Hypertext Markup Language”>HTML</abbr>
As time goes on, we will be adding more HTML codes to this article, always stay updated. share with your friends!