Online-Academy
Look, Read, Understand, Apply

E-Tourism

HTML-Basics

HTML notes

Hyper Text Markup Language (HTML) is used to create webpages. HTML consists of tags, tags are text surrounded by angle brackets (< and >). The tags of HTML provide format to the text or content surrounded by opening and closing tags. Most of the tags must have closing tags. Opening tag has not backslash, but closing tag has. We write HTML in text editor like notepad, visual studio code, sublime, atom etc.

<b>, <u>, <table>, <div> are some of the tags. If we want to bold text then we write, <b>Hello from Dinesh <b>. HTML tags are case insensitive, that means, we can write tag either in small letters or capital letters. But using one case (upper or lower) is good to maintain consistent look of the HTML code.

TagsPurpose
<b>For writing text in bold. e.g., <b>Dinesh</b>
<i>For writing text in italics
<u>For underlining text
<div>For creating divisions, division run write to left with line breaks in both top and bottom parts
<img>For placing image img tag is used, e.g., <img src="Nepal.jpg" >
<ul>, <li>Used to create unordered list. For example,
                <ul>
                <li>Laptop</li>
                <li>Desktip</li>
                <li>Television</li>
                </ul>
            
<ol>, <li>Used to create ordered list. For example,
                        <ul>
                        <li>Laptop</li>
                        <li>Desktip</li>
                        <li>Television</li>
                        </ol>
                    
<table> <tr><td>Used to create table, e.g.,
                <table>
                <tr><td>Name</td><td>Address</td></tr>
                <tr><td>Dinesh</td><td>New Baneshwor</td></tr>
                </table>
            
<a>Anchor tag to create reference to another page
<a href="dinesh07.com.np">Dinesh07</a>