If you want to give extra information about an element, you can do so by setting
HTML attributes.
Attributes are fixed in the start tag. They generally remain in the form of name/value pairs like:
name="value". Here I am discussing some attributes one by one.
Lang Attribute
Lang Attribute contains the declaration of the language.
Declaring a language gets accessibility applications (screen
readers) and search engine. It is search engine friendly.Now look this below html script:
<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>This is My Blogger Heading</h1>
<p>This can help you set html lang="en-US". Thus you can write your paragraph here.</p>
</body>
</html>
You can set this html lang below the <!DOCTYPE html> but above <body> of blogger or any website. The language code''en-US' that found in the html lang is changeable. Here you can change any other language code instead of it.
Size Attribute
By this <img> tag you can define HTML images. Here you can define the file names of the source as src. The 'src', the size of the
images are all provided as attributes:
<!DOCTYPE html>
<html>
<body>
<img src="https://lh5.googleusercontent.com/-73Wz3fVoMZw/AAAAAAAAAAI/AAAAAAAAABg/NXM1NahY0jA/s46-c-k-no/photo.jpg" width="100" height="100">
</body>
</html>
By this size attribute you can change the size of the image as you like. Instead of this image location or image url(https://lh5.googleusercontent.com/-73Wz3fVoMZw/AAAAAAAAAAI/AAAAAAAAABg/NXM1NahY0jA/s46-c-k-no/photo.jpg) you can give your image url or location. Thus you can do your html image size solution for your web development.
No comments:
Post a Comment