Question

In: Computer Science

What is the difference between HTML attributes and CSS properties? What are depricted elements and how...

What is the difference between HTML attributes and CSS properties? What are depricted elements and how can we address them? Why would a browser not support certain fonts?

1 paragraph for each plz

Solutions

Expert Solution

In HTML 5, few elements follow the width and height attributes and maximum elements do not follow this attribute. Like img, iframe, canvas, and svg kind of elements follow the width and height attributes but div, span, article and section type of elements don’t follow them.

The width and height attributes are affected in img, svg tags, those are weak kind of styling, it can be overridden by CSS. If you have assigned an img tag with the width=”500″ and height=”200″ and load a CSS width and height property for img tag like width: 400px; then that 500 will be dully 400 will effect the image.

The deprecated tags or attributes are those attributes which are replaced by some other attributes. The tag or attributes depreciated when the same attributes is achieved by some other way.Some attributes from HTML4 are no longer allowed in HTML5 at all and they have been removed completely. img and iframe. caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr. table, tr, td, th and body.

I would discourage the use of sIFR - I used it for awhile and switched to Cufon soon. Cufon is the better option because it makes do without the need for Flash support, and makes use of the <canvas> element in HTML5 instead. p/s: Make sure you read the terms and conditions of using the font.


Related Solutions

3. Every HTML element has innerHTML and outerHTML properties. What is the difference between the two?...
3. Every HTML element has innerHTML and outerHTML properties. What is the difference between the two? 4. Suppose a variable x holds “dog”. After the following code gets executed, what does x hold? x += "fish"; 5. When the following code executes, what message does the dialog box display? var month = "January"; if (month.toLowerCase() == "january") { alert("It is " + month + "!"); } 6. After the following code executes, what does x hold? var animal = "porcupine";...
Not: The number of elements, attributes, classes, properties, and sub properties will be assessed comparing to...
Not: The number of elements, attributes, classes, properties, and sub properties will be assessed comparing to your respective domains (website) and not according to the respective numbers 40, 20,60,30,15: given for reference of level. 10 queries Task: Think and define the domain of your interest: Put the link of the website/ domain. Write XML document: Point out at least 40 terms (elements) in your domain Point out at least 20 attributes in your domain Define an XML schema by using...
1/ Certain style properties (in CSS) are passed down from elements to the elements they contain...
1/ Certain style properties (in CSS) are passed down from elements to the elements they contain (their descendents). Inheritance Ancestors Parents Descendents 2/ A characteristic of the element, such as size, color, thickness, and so on. Style rule Property Selector rule Value 3/ The part of a style rule that identifies the element or elements to be affected. Value Declaration Selector Property 4/ How the document is delivered to the user, whether rendered on a computer or mobile device screen,...
In healthcare, what is the difference between a manager and a leader? What are some attributes...
In healthcare, what is the difference between a manager and a leader? What are some attributes of a leader are most important to you and why? What makes a great leader?
What are the difference between the elements of Communication Mix ?
What are the difference between the elements of Communication Mix?  
Debug3-4.css You’ve been given the initial HTML and CSS code for this web page, but there...
Debug3-4.css You’ve been given the initial HTML and CSS code for this web page, but there are several errors in the CSS stylesheet. Use your knowledge of CSS to locate and fix the errors. The body element should have a width that is 90% of the width of the browser window ranging from a minimum of 600 pixels up to a maximum of 1024 pixels. Fix the syntax errors in the body style rule that defines the width of the...
This assignment is about using attributes in HTML. The attributes you will use for this assignment...
This assignment is about using attributes in HTML. The attributes you will use for this assignment include the lang attribute, the type attribute, and the start attribute. For this assignment, you will write an HTML document to create a web page that contains ordered lists with numbers, uppercase letters, lowercase letters, uppercase Roman numerals, and lowercase Roman numerals; and a list with lowercase Roman numerals that starts at a value other than 1. Your document can be about any topic...
JS Bin / Tax Calculator / using HTML | CSS | JavaScript ------------------------------------------------------------------------------------------- How can I...
JS Bin / Tax Calculator / using HTML | CSS | JavaScript ------------------------------------------------------------------------------------------- How can I edit the JavaScript below so that when the calculate button is clicked the total price only shows two decimal places by using the toFixed() method? ----------------------------------------------------------------------------------------------------------- JavaScript: // Variables var tax = "tax"; // Tax percentage var taxRate = document.getElementById('tax'); // Selecting tax element // On the time of loading the DOM we are setting the tax rate window.addEventListener('DOMContentLoaded', (event) => { taxRate.value =...
Create 1 HTML page and 1 CSS file for all the styles. Your html page will...
Create 1 HTML page and 1 CSS file for all the styles. Your html page will be a small gallery of images using the Polaroid style. The page should have at least 1 row of 3 images. You can choose any theme of images. Don't pick random images, make them all have a theme. Add an h1 tag for the header of your page. Style the h1 tag with a color, size, and font family. Include a paragraph tag under...
Develop a personal web page for yourself using HTML, CSS, and Javascript Use the following HTML...
Develop a personal web page for yourself using HTML, CSS, and Javascript Use the following HTML tags to design your webpage: <h1>...</h1>,<h3>...</h3>, <h6>...</h6>, <p>...</p>, <b>...</b>, <i>...</i>, <a>...</a>, <img...>, <table>... </table>, <div>...</div>, <form>...</form>, <input type="text">, and <input type= "submit"> Use an external css to change the default style of your webpage. You must use at least one element selector, one id selector, and one class selector Using text input and submit button, allow the user to change the background color of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT