Which of the following statements is correct syntax for creating a link?

  1. HTML link tag
  2. HTML Style Guide and Coding Conventions
  3. Sets
  4. Creating hyperlinks


Download: Which of the following statements is correct syntax for creating a link?
Size: 60.46 MB

HTML link tag

Definition and Usage The tag defines the relationship between the current document and an external resource. The tag is most often used to link to external style sheets or to add a The element is an empty element, it contains attributes only. Browser Support Element Yes Yes Yes Yes Yes Attributes Attribute Value Description crossorigin anonymous use-credentials Specifies how the element handles cross-origin requests URL Specifies the location of the linked document language_code Specifies the language of the text in the linked document media_query Specifies on what device the linked document will be displayed no-referrer no-referrer-when-downgrade origin origin-when-cross-origin unsafe-url Specifies which referrer to use when fetching the resource alternate author dns-prefetch help icon license next pingback preconnect prefetch preload prerender prev search stylesheet Required. Specifies the relationship between the current document and the linked document Heightx Width any Specifies the size of the linked resource. Only for rel="icon" title Defines a preferred or an alternate stylesheet media_type Specifies the media type of the linked document Global Attributes The tag also supports the Event Attributes The tag also supports the Related Pages HTML tutorial: HTML DOM reference: Default CSS Settings Most browsers will display the element with the following default values:

HTML Style Guide and Coding Conventions

A consistent, clean, and tidy HTML code makes it easier for others to read and understand your code. Here are some guidelines and tips for creating good HTML code. Always Declare Document Type Always declare the document type as the first line in your document. The correct document type for HTML is: Use Lowercase Element Names HTML allows mixing uppercase and lowercase letters in element names. However, we recommend using lowercase element names, because: • Mixing uppercase and lowercase names looks bad • Developers normally use lowercase names • Lowercase looks cleaner • Lowercase is easier to write This is a paragraph. This is a paragraph. Use Lowercase Attribute Names HTML allows mixing uppercase and lowercase letters in attribute names. However, we recommend using lowercase attribute names, because: • Mixing uppercase and lowercase names looks bad • Developers normally use lowercase names • Lowercase looks cleaner • Lowercase is easier to write Visit our HTML tutorial Always Quote Attribute Values HTML allows attribute values without quotes. However, we recommend quoting attribute values, because: • Developers normally quote attribute values • Quoted values are easier to read • You MUST use quotes if the value contains spaces Always Specify alt, width, and height for Images Always specify the alt attribute for images. This attribute is important if the image for some reason cannot be displayed. Also, always define the width and height of images. This reduces flicke...

Sets

Answer: d Explanation: The members of a set can be accessed by their index values since the elements of the set are unordered. 8. If a= c) Error as there is no add function for set data type d) Error as 5 already exists in the set View Answer

Creating hyperlinks

• Previous • Overview: Introduction to HTML • Next Hyperlinks are really important — they are what makes the Web a web. This article shows the syntax required to make a link, and discusses link best practices. Prerequisites: Basic HTML familiarity, as covered in Objective: To learn how to implement a hyperlink effectively, and link multiple files together. Hyperlinks are one of the most exciting innovations the Web has to offer. They've been a feature of the Web since the beginning, and are what makes the Web a web. Hyperlinks allow us to link documents to other documents or resources, link to specific parts of documents, or make apps available at a web address. Almost any web content can be converted to a link so that when clicked or otherwise activated the web browser goes to another web address ( Note: A URL can point to HTML files, text files, images, text documents, video and audio files, or anything else that lives on the Web. If the web browser doesn't know how to display or handle the file, it will ask you if you want to open the file (in which case the duty of opening or handling the file is passed to a suitable native app on the device) or download the file (in which case you can try to deal with it later on). For example, the BBC homepage contains many links that point not only to multiple news stories, but also different areas of the site (navigation functionality), login/registration pages (user tools), and more. Note: A link title is only revealed on mouse ho...