
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Replace Default Meta Tag with Custom Meta Tags in HTML
Meta tags are used to store data about HTML documents such as who wrote it and the description of the document.
The best solution is to define default tags in the application and overwrite default parameters in view. We can do so in PHP.
Making changes in config file first −
<?php return [ ‘addemailid’ =>’ [email protected]’, ‘descrip’=>’docdescription’ ];
Making changes in the layout −
<?php $this->registerMetaTag($app->params[‘ademailid’], ‘ademailid’); $this->registerMetaTag($app->params[‘descrip’],’ descrip’); ?>
Advertisements