Posts

Showing posts from September, 2020

HTML Elements

 HTML ELEMENTS -: An HTML file is made of elements. These elements are responsible for creating web pages and define content in that web page. An element in HTML usually consist of a start tag <tag name>, close tag </tag name> and content inserted between them. Technically, an element is a collection of start tag, attributes, end tag, content between them. Such as:  < p >  Hello world!!!  </ p >      Void element:  All the elements in HTML do not require to have start tag and end tag, some elements does not have content and end tag such elements are known as Void elements or empty elements.  These elements are also called as unpaired tag . Some Void elements are <br> (represents a line break) , <hr>(represents a horizontal line), etc. Nested HTML Elements:  HTML can be nested, which means an element can contain another element. Block-level and Inline HTML elements For the default display and styli...

HTML Images

Image
 HTML IMAGE:-    HTML img  tag is used to display image on the web page. HTML img tag is an empty tag that contains attributes only, closing tags are not used in HTML image element. Let's see an example of HTML image. < h2 > HTML Image Example </ h2 >    < img   src = "good_morning.jpg"   alt = "Good Morning Friends" />   Attributes of HTML tags:- The src and alt are the two most important attributes of HTML image tag are given below-: (1)  ALT-:  The alt attribute defines an alternate text for the image, that can be displayed. The value of the alt attribute describes the image in words. The alt attribute is considered good for SEO prospective. (2)  SRC-: It is a necessary attribute that describes the source or path of the image. It instructs the browser where to look for the image on the server. The location of the image may be on the same directory or another service. There are two ways...

HTML BASICS

Image
 In this blog we will study abut some basics of HTML examples. In this we will use tags which we have not learned yet. HTML DOCUMENTS:- All HTML documents starts with a document declaration: <!Doctype html>. The html document itself begins with <html> and ends with </html>. The visible part of the HTML document is between <body> and ends with </body>. For Example-:  < !DOCTYPE  html > < html > < body > < h1 > My First Heading < /h1 > < p > My first paragraph. < /p > < /body > < /html > The  <!DOCTYPE>  Declaration:-  The  <!Doctype>  declaration represents the document type, and helps browsers to display the web pages correctly. It must only appear once, at the top of the page (before any HTML tags). The  <!Doctype>  declaration is not a case sensitive. The  <!Doctype>  declaration for HTML is-: < !DOCTYPE  html ...

What is an HTML Editor?

Image
An HTML Editor is used to write the foundation of a website. Text using an HTML editor can also be translated to other languages such as CSS, XML, JAVASCRIPT etc. Some editors might be easier to use while some provide more functionality than others.  When Should We Use An HTML Editor? An HTML Editor is an invaluable for both beginners and more advanced developers. The basic features of HTML editors, like syntax highlighting, inserting common HTML elements.  For example, the editor will notify us that we have forget to put the end tag </ in a code element. Therefore we should not limit yourself by not using some sort of HTML Editor. There are 2 types of editors available, WYSIWYG and Textual HTML Editors .   Let's start talking about our first type WYSIWYG Editor vs. TEXTUAL Editor WYSIWYG EDITOR:- WYSIWYG is an acronym for W hat Y ou S ee I s W hat Y ou G et. These editors provide an editing interface that shows how that code looks on a working web page.  Usi...