Know all about html, html components and xhtml

What is HTML?

HTML (Hypertext Markup Language) and CSS (Cascade Style Sheets) are two core technologies for building web pages. HTML provides the structure of the page, and CSS provides the layout (visual and acoustic) of different devices. Graphics and scripts, HTML and CSS are the foundations for creating websites and web applications.

Hypertext Markup Language (HTML) is a very common way of programming language for documents that are designed in a web browser to be viewed in webpages. It can be supported by technologies such as Cascade Style Sheets (CSS) and scripting languages such as JavaScript.

The web browser receives an HTML document from a web server or local storage and renders the document into a multimedia web page. HTML semantically describes the structure of a web page and originally contains hints about the appearance of the document.

Html Elements

HTML elements are components of HTML pages. You can use the HTML structure to embed other objects such as images and interactive forms in the rendered page. HTML provides a way to create structured documents by providing structural semantics of text such as headings, paragraphs, lists, links, citations, and other elements.

HTML elements are to separate by the tags enclosed in angle of brackets. Tags like and introduce content directly to the page. Other tags, such as, enclose and provide information about the document text and may include other tags as Sub elements. The browser does not display HTML tags, but uses them to interpret the content of the page.

HTML can embed programs written in scripting languages such as JavaScript and affect the behavior and content of web pages. The inclusion of the CSS code defines in the layout of the content so as appearance.

The World Wide Web Consortium (W3C), a former HTML maintainer and now a CSS standard maintainer, has been promoting the use of CSS over explicit presentation HTML since 1997. The HTML format, called HTML5, is primarily used to display video and audio using elements in combination with JavaScript.

Fastest way to learn about Advanced HTML :Online Advanced HTML Training

What is XHTML?

XHTML is a variant of HTML that uses the XML syntax Extensible Markup Language. XHTML has the same elements (such as paragraphs) as HTML variants, but with a slightly different syntax.

Because XHTML is an XML application, you can use other XML tools (for example, XSLT, the language for transforming XML content).

What is a CSS?

CSS is a language for describing the appearance of web pages, such as colors, layouts, and fonts. This allows the display to be adapted to different types of devices. B. Large screen, small screen, or printer. CSS is HTML independent and can be used in XML-based markup languages.

Separating HTML and CSS makes it easier to manage your website, share stylesheets between sites, and adapt your pages to different environments. This is called the separation of structure and expression.

Fastest way to learn about CSS : Online CSS Training

What are Web Fonts?

Web Fonts is a technology that allows users to use fonts on demand on the web without having to install them on their operating system. W3C has experience with fonts that can be downloaded via HTML, CSS2, and SVG.

Until recently, downloadable fonts were not common on the web due to the lack of interoperable font formats. The Web Fonts initiative will address this by creating an industry-supported open font format for the web (called "WOFF").

Difference between JavaScript and HTML

Javascript HTML
JavaScript is a high-level scripting language introduced by Netscape for execution on the client side of a web browser. HTML is the most basic component of the web. Defines the meaning and structure of web content.
JavaScript makes it easy to add dynamic content to your website to make it look good. The HTML is rendered from the entire server side, which is different from the client-side script.
JavaScript is an advanced programming language that makes websites more interactive and dynamic. HTML pages are static. That is, you cannot change the content.
Manipulate content to create dynamic web pages. HTML is a standard markup language that provides the primary structure of a website.
JavaScript is an advanced programming language for creating dynamic websites. HTML affects the look of your site without any interactive effects.

Fastest way to learn about Advanced Web Design : Online Advanced Web Design Course

HTML FAQ

Why are external CSS and JavaScript files a good idea?

From a maintenance perspective, you should strive to completely separate content, presentations, and behavior. If you want to redesign your page, you only have to edit one stylesheet instead of updating thousands of HTML documents. If you create inline CSS with style attributes, you need to edit these HTML documents when you redesign your website, not just a single stylesheet file. There might be other problem, Both CSS and JavaScript often contain characters that have a special meaning in HTML. If your CSS or JavaScript code is embedded in your HTML document, you need to escape these characters. If you embed JavaScript, use archaism to "hide" the script code in SGML comments (). You cannot use decrement operators (such as --i) because the comment ends with a double dash.

When does JavaScript code appear inline within an html file?

For more information, you can display the JavaScript code between the "script" tags in your HTML file. JavaScript can also be inserted from an external file specified by the src attribute of the "script" tag.

Where do you embed JavaScript code in HTML documents?

To include an external JavaScript file, you can use the script tag in the src attribute. If you use an image, you are already using the src attribute. The value of the src attribute should be the path to the JavaScript file. This script tag must be included between the tags in the HTML document.

Can JavaScript code appear in an HTML file?

You can insert JavaScript code into your HTML document using the dedicated HTML tag that surrounds the JavaScript code. The tag can be placed in the or section of the HTML, depending on when you load the JavaScript.

Can we include JavaScript code anywhere in an HTML document?

You can insert JavaScript code anywhere in your HTML document. You can embed the JavaScript code in the following location: Page header between "head" tags. The body of the page between the "body" tags.

Why are layout tables considered harmful?