Posts

Favorite posts

HTML Elements, nested elements and empty elements

HTML Elements, nested elements and empty elements HTML Elements HTML Elements An HTML element usually consists of a start tag and end tag, with the content inserted in between &colon; <tagname>content goes here...</tagname> The HTML element is everything from the start tag to the end tag &colon; <p>My first paragraph.</p> Start tag Element content End tag <h1> My First Heading </h1> <p> My first paragraph. </p> <br /> HTML elements with no content are called empty elements. Empty elements do not have an end tag, such as the <br/ > element(which indicates a line break). Nested HTML Elements HTML elements can be nested (elements can contain elements). All HTML documents consists of nested HTML elements. This example contains four HTML elements &colon; Example &colon; Answer &colon; <!DOCTYPE html> <html> <body&

Some Basic HTML Examples

Some HTML Basic Examples HTML Basic Examples Don't worry, if you are not familiar with these tags. You will be learning them in the next upcoming chapters. HTML Documents Each and every HTML document must have to start with a document type declaration &colon; <!DOCTYPE html> . The HTML document itself begins with <html> and ends with </html> The visible part of the HTML document is always between <body> and </body> tag. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> HTML Headings HTML headings are defined according to the importance of the headings with the <h1> to <h6> tags. <h1> defines the most important heading. <h6> defines the least important heading &colon; Example &am

HTML Editors for "PC/MAC"

Image
HTML Editors HTML Editors Write HTML Using Notepad or TextEdit Web pages can be created and modified by using professional HTML editors. However, for learning HTML we recommend a simple text editor like Notepad(PC) or Text Edit(Mac) . We believe using a simple text editor is a good way to learn HTML. Follow the four(4) steps below to create your first web page with Notepad or TextEdit. Step 1 &colon; Open Notepad (PC) Windows 8 or later &colon; Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad . Windows 7 or earlier &colon; Open Start>Programs>Accessories>Notepad Step 1 &colon; Open TextEdit (Mac) Open Finder>Applications>TextEdit Also change some preferences to get the application to save files correctly. In Preferences>Format> choose Plain Text . Then under "Open and Save" , check the box that says ignore rich text com

A Basic Introduction to HTML5

Image
An Introduction to HTML5, HTML tags, elements and page structures HTML5 Tutorial With HTML you can create your own Web site. HTML is easy to learn. HTML Introduction What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language. HTML describes the structure of Web pages using markup. HTML elements are the building blocks of HTML pages. HTML elements are represented by tags. HTML tags label pieces of content such as heading , paragraph , table , and so on. Browsers do not display the HTML tags directly, but use them to render the content of the page. A Simple HTML Document Example &colon; <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> Example Explained The <!DO