html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
tags to organize data in rows and cells."> 0 ratings0% found this document useful (0 votes) 83 views11 pagesChapter 4: - HTML HTML is a markup language used to define the structure and layout of web pages. HTML uses tags like <h1> for headings and <p> for paragraphs that are ignored by browsers but help display and structure content. A basic HTML page includes <html>, <head>, and <body> tags and provides document structure, title, and visible content. Common text styles are defined with tags like <b> for bold, <i> for italic, and <strong> for important text. Tables are defined with <table>, <tr>, and <td> tags to organize data in rows and cells. Uploaded byMaitri ShahCopyright © © All Rights Reserved We take content rights seriously. If you suspect this is your content, claim it here. Available Formats Download as PDF, TXT or read online on Scribd 0 ratings0% found this document useful (0 votes) 83 views11 pagesChapter 4: - HTML HTML is a markup language used to define the structure and layout of web pages. HTML uses tags like <h1> for headings and <p> for paragraphs that are ignored by browsers but help display and structure content. A basic HTML page includes <html>, <head>, and <body> tags and provides document structure, title, and visible content. Common text styles are defined with tags like <b> for bold, <i> for italic, and <strong> for important text. Tables are defined with <table>, <tr>, and <td> tags to organize data in rows and cells. Uploaded byMaitri ShahCopyright © © All Rights Reserved We take content rights seriously. If you suspect this is your content, claim it here. Available Formats Download as PDF, TXT or read online on Scribd You are on page 1/ 11 Chapter 4 : - HTMLWhat is HTML? HTML stands for Hyper Text Markup Language A markup language is a set of markup tags HTML documents are described by HTML tags Each HTML tag describes different document content HTML Example <body> </html> Example Explained Using this description, a web browser can display a document with a heading and a paragraph. 1 <tagname>content</tagname> The start tag is often called the opening tag. The end tag is often called the closing tag. Web Browsers The browser does not display the HTML tags, but uses them to determine how to display the 2 <html> HTML Headings Example HTML Paragraphs Example 3 HTML Links Example The link address is specified in the href attribute.Attributes are used to provide additional information about HTML elements.HTML Images The source file (src), alternative text (alt), and size (width and height) are provided as Example HTML Tables 4 First Name Last Name Points1 Eve Jackson 94 2 John Doe 80 3 Adam Johnson 67 4 Jill Smith 50 Defining HTML TablesExample <table style="width:100%"> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table> Example explained: 5 Tables are divided into table rows with the <tr> tag. Table rows are divided into table data with the <td> tag. A table row can also be divided into table headings with the <th> tag. Table data <td> are the data containers of the table.They can contain all sorts of HTML elements like text, images, lists, other tables, etc. An HTML Table with a Border AttributeIf you do not specify a border for the table, it will be displayed without borders. A border can be added using the border attribute:Example HTML Table TagsTag Description 6 HTML Text Formatting ElementsText Formatting This text is italicThis text is italicThis is superscript HTML Formatting ElementsIn the previous chapter, you learned about HTML styling, using the HTML style attribute. HTML also defines special elements, for defining text with a special meaning. HTML uses elements like <b> and <i> for formatting output, like bold or italic text. Formatting elements were designed to display special types of text: Bold text HTML Bold and Strong FormattingThe HTML <b> element defines bold text, without any extra importance. Example <p><b>This text is bold</b>.</p>The HTML <strong> element defines strong text, with added semantic "strong" importance. Example <p><strong>This text is strong</strong>.</p>HTML Italic and Emphasized FormattingThe HTML <i> element defines italic text, without any extra importance. Example <p><i>This text is italic</i>.</p> 8 Example <p><em>This text is emphasized</em>.</p>Browsers display <strong> as <b>, and <em> as <i>. However, there is a difference in the meaning of these tags: <b> and <i> defines bold and italic HTML Small FormattingThe HTML <small> element defines small text: Example HTML Marked FormattingThe HTML <mark> element defines marked or highlighted text: Example HTML Deleted FormattingThe HTML <del> element defines deleted (removed) of text. 9 Example <p>My favorite color is <del>blue</del> red.</p> HTML Inserted FormattingThe HTML <ins> element defines inserted (added) text. Example HTML Subscript FormattingThe HTML <sub> element defines subscripted text. Example HTML Superscript FormattingThe HTML <sup> element defines superscripted text. Example 10 <font size="3" color="red">This is some text!</font><font face="verdana" color="green">This is some text!</font>11 You might also like
|