Lecture 3 In this lecture I study about tags which are used in html. Bold: To do text bold in html. we use tags <b> </b>. For example <b> Hello World </b>. Hello World Italic: To do text italic in html.we use tags <i> </i>. For example <i> Hello World < /i>. Hello World Underline: To place line under any text. we use tags <u> </u>. For example <u> Hello World </u> Hello World Strike: To use Strike tag in html for unimportant and inaccurate text. For example <strike> 100 </strike>. 100 How to create random paragraph in html? We use "lorem" keyword to create random paragraph in html. How to use ? <p> lorem <p>. To keep paragraph on one page: To keep paragraph on one page in html we use "Alt+Z" keyword. Superscript and Subscript in html We use superscript a...
Lecture 4 How to create Boilerplate Automatically in html? To create boilerplate automatically in html. "Shift + 1" keyword is used. How to change color in html? <font></font> tags are used to change color in html. In font tag color attribute are used. How to use Font tag with color attribute? <font color="purple"> Hello World </font>. Hello World Difference between tags and attribute? Tags are used to hold the html element and attributes add additional information in tags.We can apply multiple attribute in tags. How to change size in html? To change size in html <font></font> tag with size attribute. How to use Font tag with size attribute? <font size="100">Pakistan</font>. Pakistan. How to change writing style in html? The style of the writing is changed by using font tag with face attribute. How to use? To use font tag with face attribute we can change writing style. <font face=" Georgia ...
Java-Script Lecture #25 Q. What is the purpose of .innerHTML, .value and .textContent in java-script? .innerHTML, .value and .textContent are not used for same purpose in java-script, they serve different roles when working with HTML elements. They might have similar syntax because they are properties of DOM elements in HTML, DOM stand for Document Object Model. 1. .innerHTML: This property is used to get or set the HTML content within an element. You can use this to retrieve the HTML content inside an element or to change it by assigning new HTML content to it. 2. .value: This property is used with for elements like input fields, checkbox and radio buttons to get or set their current values. You can use this to retrieve the current value of the input fields or to set a new values, you can get or set the input fields values through java-script. 3. .textContent: This property is used to get or set the text content of the element. You can use this...
Comments
Post a Comment