Skip to main content

Posts

Showing posts with the label HTML

WDS9 - More about HTML Links

In the last article we learned about: Quotations Comments in HTML. Now in this post, we are going to see HTML links in detail. We know that we can use links in HTML to navigate from one page to another. When we hover over element containing a link, it generally changes to blue and mouse changes to hand icon in the browser. We all have seen examples of links in previous posts where we used following things: Enclosing text to be used as link in <a> and </a> tags Giving href attribute in <a> tag and setting its value to the desired link In all the examples we used the text links to other webpages that are sites like google.com or say, facebook.com, but it is interesting to know that you can enclose other HTML elements such as images inside link tags to use images as the link to other pages. To do this, first we will create a image in HTML using <img> tag and then we will enclose it within <a> and </a> tags with href attribute.

WDS8 - Use of Quotes and Comments

In the last article we learned following tags to enhance your HTML: <b> and <strong> tags <i> and <em> tags <small> <del> <mark> <ins> <sup> and <sub> tags Now let's move forward from styling and see some HTML elements so that we can write quotes in our documents comfortably. HTML <q> tag for Short Quotations This <q> tag defines a short quotation in HTML. This is mostly used for short inline quotations. Most of the browsers insert quotation marks(") before and after the content in quotation tags. HTML <blockquote> tag for Large Quotations This <blockquote> tag defines large quotations in HTML. Browsers usually indent the content inside <blockquote> tags. HTML <abbr> for Abbreviations HTML <abbr> tag defines an abbreviation. This tag requires one extra attribute called title . This attribute takes full form for that particular abbrev

WDS7 - Futher style your HTML

In the last article we learned: HTML <pre> tag preformatted text HTML style attribute with various properties for background color, text color, font, text size and alignment of text Now let's see some more tags which you can use to enhance your content in HTML. HTML <b> and <strong> tags  <b> tag defines bold text without any extra importance while <strong> tag defines strong text with added meaning of " importance ". The visulal output of both tags will be exactly same, but special importance will be given where <strong> tag is used when the text is converted in audio by browser for text-to-speech conversion. HTML <i> and <em> tags <i> tag defines italic text without any extra importance while <em> tag defines emphasized with added meaning of "importance". Just like above case of <b> and <strong> tags, no visual difference will be in output.  HTML <small>

WDS6 - Style your Document

In the last article we learned: Rules about using HTML headings Horizontal Rule in HTML How to Inspect webpages to view their HTML Now let's move towards one very important flaw of HTML: We all studied about paragraph element in previous posts which help to create a paragraph simply, but do you notice one big problem with it? Let's see with one example: The above two code snippets have different inputs but same output. Why? With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.The browser will remove any extra spaces and extra lines when the page is displayed. But there is the solution. HTML <pre> Tag  <pre> tag is used for displaying preformatted text which means it will display output same as-as formatting in your input and will not remove extra spaces. HTML Style Attribute  Although what I will you tell now, you will never use after you learn CSS . In this part we will study how you can style con

WDS5 - Inspect HTML and Other Tags

In the last article we learned: 3 Important HTML Rules Nested and empty elements HTML Attributes   Let's start today with some important points: HTML Headings  We have already seen HTML headings represented by tags <h1> to <h6> where <h1> is most important heading while <h6> is least important heading. Now I am mentioning some important points which you should follow when using HTML headings: Search engines use the headings to index the structure and content of your web pages. This is important because you should always follow an order of heading tags. <h1> should be used for main heading, <h2> for less important subheadings and so on. In fact, it is commonly followed a system of using only one <h1> tag in the document to represent heading of your document and nowhere else. Heading tags should only be used for headings and not for making text bigger or bold. Different tags are used for this operations and we will study

WDS4 - HTML Attributes and Some Important Rules

In the last article we learned: HTML Headings Paragraphs Links Images Now we are 3 rules that we should always follow: Although HTML tags are not case sensitive which means you can use either <p> or <P> for paragraph tags, you should always use lowercase tags as many standards use same in their documentation and you will form a good habit. You should never forget end tag in HTML. In some cases, the document will be displayed perfectly without using end tag but consider it as just a coincidence. In many cases, it will produce wrong or undesirable output. In last class when we learned about attributes which consist of name and value pair, always use them as name="value". Although quotes (") are not necessary, it is a good habit to use them.You can use both single or double quotes but double quotes are preferable. You have to use single quotes when value itself contains double quotes. Two important notes: You can use HTML tags in nested form

WDS3 - HTML Basic Body Tags

In the last article we learnt: What is HTML Basic HTML Structure Where we will write HTML Your first HTML Document    Now all of you know that our html document has two main sections: head body Our actual document that will be visible to us in the form of webpage will be written in body part of html while other important information about document including title will be written in head part of html. So in this part we are going to see some other important tag to enhance your content which will be used in body part of html. HTML Headings HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading while <h6> defines the least important heading. While trying all the examples from now on, you can use head part from previous article and change the body part to see your result as we did in last article(WDS2). So here is how you will use HTML headings:    HTML Paragraphs For paragraphs, we use <p> tag i

WDS2 - HTML Introduction and Setup

What is HTML? HTML stands for Hyper Text Markup Language. It is standard markup language for creating Web pages. It describes the structure of Web pages using markup. In simple language, we will write HTML document using normal content and some special tags which will be rendered by browsers such as google chrome, firefox, opera or safari.Browsers do not display the HTML tags but use them to render the content of the page. A Simple HTML Document In the above HTML document the following part is content: Page Title My First Heading My First paragraph All the remaining part is made up of tags that will not be shown on the browser (that is output). Let's see what these tags mean: <!DOCTYPE html> : Defines this document as HTML <html> : Root element of an HTML page <head> : This contains meta information about this document <title> : Title of document that will be shown in your tab bar <body> : It contains visible portion of

Web Development Series (WDS1)

Web development is a really nice way to enter in coding. Although it is easy to see on its first sight, web development consists of many steps and one should conquer them step by step. Your website should be responsive, fast, attractive and must be as your condition. Learning web development is a long journey and require patience, consistency, and self-believe. So from this post, in this series, we will start learning various things needed to perfectly create a good website. Follow along, don't just read, try it yourself, ask doubts and keep coding. Web development consists of mainly 3 steps: Learning Front End Development - In simple language, you will create what user sees on a website including all text, images, contact forms and beautiful designs. Learning Back-End Development - This type of web development usually consists of three parts: a server, an application, and a database.Most of the code that is required to make an application work will be done on the bac