Tag Archives: HTML

Differences Between XHTML And HTML

What makes XHTML different from HTML Tag and attribute names must be in lower-case Elements must be nested properly, no overlapping Non-empty elements must be closed Empty elements must be terminated All attribute values must be quoted Attribute value pairs cannot be shortened <script> and <style> elements Tag and attribute names must be in lower-case […]

Learn Html

HTML Doctypes

HTML doctypes A doctype declaration refers to the rules for the markup language, so that the browsers render the content correctly. Example An HTML document with a doctype of HTML 4.01 Transitional: <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd“> <html> <head> <title>Title of the document</title> </head> <body> The content of the document…… </body> </html> HTML […]

Html Iframes

HTML Iframe Tags An iframe is used to display a web page within a web page. Defines an inline sub window (frame). Tag Description <iframe> Defines an inline sub window (frame) <iframe src=”http://www.paktutorial.com“></iframe> Syntax for adding an iframe: <iframe src=”URL“></iframe> The URL points to the location of the separate page. Iframe – Set Height and […]